Mercurial > libavcodec.hg
changeset 2668:b4d7d4d05d95 libavcodec
b_frame_strategy sanity check
author | michael |
---|---|
date | Thu, 12 May 2005 01:31:11 +0000 |
parents | e99703305233 |
children | a4e3a37ed57b |
files | mpegvideo.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Wed May 11 23:51:44 2005 +0000 +++ b/mpegvideo.c Thu May 12 01:31:11 2005 +0000 @@ -1065,6 +1065,11 @@ 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");