Browse Source

Prevent low delay from being used with mpeg1.

Originally committed as revision 14627 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 17 years ago
parent
commit
9cc440bfc4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      libavcodec/mpegvideo_enc.c

+ 2
- 2
libavcodec/mpegvideo_enc.c View File

@@ -440,8 +440,8 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
}

if(s->flags & CODEC_FLAG_LOW_DELAY){
if (s->codec_id != CODEC_ID_MPEG2VIDEO && s->codec_id != CODEC_ID_MPEG1VIDEO){
av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg1/2\n");
if (s->codec_id != CODEC_ID_MPEG2VIDEO){
av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg2\n");
return -1;
}
if (s->max_b_frames != 0){


Loading…
Cancel
Save