[FFmpeg-cvslog] r26057 - trunk/libavcodec/utils.c

cehoyos subversion
Sun Dec 19 13:17:40 CET 2010


Author: cehoyos
Date: Sun Dec 19 13:17:40 2010
New Revision: 26057

Log:
Fix -lowres with ffplay.

Patch by Anatoly Nenashev, anatoly d nenashev a ovsoft d ru

Modified:
   trunk/libavcodec/utils.c

Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c	Sun Dec 19 10:01:02 2010	(r26056)
+++ trunk/libavcodec/utils.c	Sun Dec 19 13:17:40 2010	(r26057)
@@ -185,8 +185,9 @@ void avcodec_align_dimensions2(AVCodecCo
 
     *width = FFALIGN(*width , w_align);
     *height= FFALIGN(*height, h_align);
-    if(s->codec_id == CODEC_ID_H264)
+    if(s->codec_id == CODEC_ID_H264 || s->lowres)
         *height+=2; // some of the optimized chroma MC reads one line too much
+                    // which is also done in mpeg decoders with lowres > 0
 
     linesize_align[0] =
     linesize_align[1] =



More information about the ffmpeg-cvslog mailing list