Commit cd55813f authored by michael's avatar michael

complain about mpeg4 limits only if codec_id == MPEG4


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@4200 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4264d6c2
...@@ -1091,7 +1091,7 @@ int MPV_encode_init(AVCodecContext *avctx) ...@@ -1091,7 +1091,7 @@ int MPV_encode_init(AVCodecContext *avctx)
avcodec_get_chroma_sub_sample(avctx->pix_fmt, &chroma_h_shift, &chroma_v_shift); 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"); av_log(avctx, AV_LOG_ERROR, "timebase not supported by mpeg 4 standard\n");
return -1; return -1;
} }
......
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