[FFmpeg-cvslog] r14627 - trunk/libavcodec/mpegvideo_enc.c

michael subversion
Tue Aug 5 22:39:58 CEST 2008


Author: michael
Date: Tue Aug  5 22:39:58 2008
New Revision: 14627

Log:
Prevent low delay from being used with mpeg1.


Modified:
   trunk/libavcodec/mpegvideo_enc.c

Modified: trunk/libavcodec/mpegvideo_enc.c
==============================================================================
--- trunk/libavcodec/mpegvideo_enc.c	(original)
+++ trunk/libavcodec/mpegvideo_enc.c	Tue Aug  5 22:39:58 2008
@@ -440,8 +440,8 @@ av_cold int MPV_encode_init(AVCodecConte
     }
 
     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){




More information about the ffmpeg-cvslog mailing list