summaryrefslogtreecommitdiff
path: root/libavcodec/mpegvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2005-05-08 00:44:06 +0000
committerMichael Niedermayer <michaelni@gmx.at>2005-05-08 00:44:06 +0000
commit1192ce3707a26ce72da1134f9f8b659b6383030b (patch)
tree0118f34ae2491e026b207c761a357b2330bdd168 /libavcodec/mpegvideo.c
parent44608ac7cd52152d64a5af1a9a2927d91252421d (diff)
complain about mpeg4 limits only if codec_id == MPEG4
Originally committed as revision 4200 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r--libavcodec/mpegvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index edf409928d..4857dcb5dc 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -1091,7 +1091,7 @@ int MPV_encode_init(AVCodecContext *avctx)
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;
}