Commit a6eedd35 authored by michael's avatar michael

b_frame_strategy sanity check


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4222 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ffe16261
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment