mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
complain about mpeg4 limits only if codec_id == MPEG4
Originally committed as revision 4200 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
44608ac7cd
commit
1192ce3707
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user