[FFmpeg-cvslog] r15418 - trunk/libavcodec/h264.c

michael subversion
Thu Sep 25 23:44:08 CEST 2008


Author: michael
Date: Thu Sep 25 23:44:07 2008
New Revision: 15418

Log:
Avoid out of picture accesses when CODEC_FLAG_EMU_EDGE is set.
Fixes issue427.


Modified:
   trunk/libavcodec/h264.c

Modified: trunk/libavcodec/h264.c
==============================================================================
--- trunk/libavcodec/h264.c	(original)
+++ trunk/libavcodec/h264.c	Thu Sep 25 23:44:07 2008
@@ -2391,7 +2391,7 @@ static inline void xchg_mb_border(H264Co
         deblock_top  = h->slice_table[mb_xy] == h->slice_table[h->top_mb_xy];
     } else {
         deblock_left = (s->mb_x > 0);
-        deblock_top =  (s->mb_y > 0);
+        deblock_top =  (s->mb_y > !!MB_FIELD);
     }
 
     src_y  -=   linesize + 1;




More information about the ffmpeg-cvslog mailing list