Browse Source

b_frame_strategy sanity check

Originally committed as revision 4222 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 20 years ago
parent
commit
bf873ee62a
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      libavcodec/mpegvideo.c

+ 5
- 0
libavcodec/mpegvideo.c View File

@@ -1065,6 +1065,11 @@ int MPV_encode_init(AVCodecContext *avctx)
return -1;
}
if(avctx->b_frame_strategy && (avctx->flags&CODEC_FLAG_PASS2)){
av_log(avctx, AV_LOG_ERROR, "b_frame_strategy must be 0 on the second pass");
return -1;
}

i= ff_gcd(avctx->time_base.den, avctx->time_base.num);
if(i > 1){
av_log(avctx, AV_LOG_INFO, "removing common factors from framerate\n");


Loading…
Cancel
Save