Revision a048febd

View differences:

libavformat/nutdec.c
325 325
                av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
326 326
            break;
327 327
        case 2:
328
//            st->codec->codec_type = CODEC_TYPE_TEXT;
329
//            break;
328
            st->codec->codec_type = CODEC_TYPE_SUBTITLE;
329
//            st->codec->codec_id = codec_get_id(codec_wav_tags, tmp); FIXME
330
            if (st->codec->codec_id == CODEC_ID_NONE)
331
                av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
332
            break;
330 333
        case 3:
331 334
            st->codec->codec_type = CODEC_TYPE_DATA;
332 335
            break;
libavformat/nutenc.c
394 394
    switch(codec->codec_type){
395 395
    case CODEC_TYPE_VIDEO: put_v(bc, 0); break;
396 396
    case CODEC_TYPE_AUDIO: put_v(bc, 1); break;
397
//    case CODEC_TYPE_TEXT : put_v(bc, 2); break;
397
    case CODEC_TYPE_SUBTITLE: put_v(bc, 2); break;
398 398
    default              : put_v(bc, 3); break;
399 399
    }
400 400
    put_v(bc, 4);

Also available in: Unified diff