Revision 9fdfd21c

View differences:

libavformat/nutdec.c
315 315
        case 0:
316 316
            st->codec->codec_type = CODEC_TYPE_VIDEO;
317 317
            st->codec->codec_id = codec_get_id(codec_bmp_tags, tmp);
318
            if (st->codec->codec_id == CODEC_ID_NONE)
319
                av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
320 318
            break;
321 319
        case 1:
322 320
            st->codec->codec_type = CODEC_TYPE_AUDIO;
323 321
            st->codec->codec_id = codec_get_id(codec_wav_tags, tmp);
324
            if (st->codec->codec_id == CODEC_ID_NONE)
325
                av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
326 322
            break;
327 323
        case 2:
328 324
            st->codec->codec_type = CODEC_TYPE_SUBTITLE;
329 325
//            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 326
            break;
333 327
        case 3:
334 328
            st->codec->codec_type = CODEC_TYPE_DATA;
......
337 331
            av_log(s, AV_LOG_ERROR, "unknown stream class (%d)\n", class);
338 332
            return -1;
339 333
    }
334
    if(class<3 && st->codec->codec_id == CODEC_ID_NONE)
335
        av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
336

  
340 337
    GET_V(stc->time_base_id    , tmp < nut->time_base_count);
341 338
    GET_V(stc->msb_pts_shift   , tmp < 16);
342 339
    stc->max_pts_distance= ff_get_v(bc);

Also available in: Unified diff