Commit 258a76f7 authored by michael's avatar michael

Prevent low delay from being used with mpeg1.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14627 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ab23a386
......@@ -440,8 +440,8 @@ av_cold int MPV_encode_init(AVCodecContext *avctx)
}
if(s->flags & CODEC_FLAG_LOW_DELAY){
if (s->codec_id != CODEC_ID_MPEG2VIDEO && s->codec_id != CODEC_ID_MPEG1VIDEO){
av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg1/2\n");
if (s->codec_id != CODEC_ID_MPEG2VIDEO){
av_log(avctx, AV_LOG_ERROR, "low delay forcing is only available for mpeg2\n");
return -1;
}
if (s->max_b_frames != 0){
......
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