changeset 7502:d5c528384f13 libavcodec

Prevent low delay from being used with mpeg1.
author michael
date Tue, 05 Aug 2008 20:39:58 +0000
parents d6012be599d3
children d85a0a151344
files mpegvideo_enc.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mpegvideo_enc.c	Tue Aug 05 19:32:01 2008 +0000
+++ b/mpegvideo_enc.c	Tue Aug 05 20:39:58 2008 +0000
@@ -440,8 +440,8 @@
     }
 
     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){