Mercurial > libavcodec.hg
comparison mpegvideo_enc.c @ 7502:d5c528384f13 libavcodec
Prevent low delay from being used with mpeg1.
author | michael |
---|---|
date | Tue, 05 Aug 2008 20:39:58 +0000 |
parents | e943e1409077 |
children | b8ad314749ff |
comparison
equal
deleted
inserted
replaced
7501:d6012be599d3 | 7502:d5c528384f13 |
---|---|
438 av_log(avctx, AV_LOG_ERROR, "intra vlc table not supported by codec\n"); | 438 av_log(avctx, AV_LOG_ERROR, "intra vlc table not supported by codec\n"); |
439 return -1; | 439 return -1; |
440 } | 440 } |
441 | 441 |
442 if(s->flags & CODEC_FLAG_LOW_DELAY){ | 442 if(s->flags & CODEC_FLAG_LOW_DELAY){ |
443 if (s->codec_id != CODEC_ID_MPEG2VIDEO && s->codec_id != CODEC_ID_MPEG1VIDEO){ | 443 if (s->codec_id != CODEC_ID_MPEG2VIDEO){ |
444 av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg1/2\n"); | 444 av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg2\n"); |
445 return -1; | 445 return -1; |
446 } | 446 } |
447 if (s->max_b_frames != 0){ | 447 if (s->max_b_frames != 0){ |
448 av_log(avctx, AV_LOG_ERROR, "b frames cannot be used with low delay\n"); | 448 av_log(avctx, AV_LOG_ERROR, "b frames cannot be used with low delay\n"); |
449 return -1; | 449 return -1; |