Mercurial > libavcodec.hg
changeset 2653:2515af7d3238 libavcodec
complain about mpeg4 limits only if codec_id == MPEG4
author | michael |
---|---|
date | Sun, 08 May 2005 00:44:06 +0000 |
parents | 659b92488061 |
children | ec2b0cba6764 |
files | mpegvideo.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Sat May 07 19:24:07 2005 +0000 +++ b/mpegvideo.c Sun May 08 00:44:06 2005 +0000 @@ -1091,7 +1091,7 @@ avcodec_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, &chroma_v_shift); - if(s->avctx->time_base.den > (1<<16)-1){ + if(avctx->codec_id == CODEC_ID_MPEG4 && s->avctx->time_base.den > (1<<16)-1){ av_log(avctx, AV_LOG_ERROR, "timebase not supported by mpeg 4 standard\n"); return -1; }