changeset 7926:224dea3d9ac8 libavcodec

Avoid out of picture accesses when CODEC_FLAG_EMU_EDGE is set. Fixes issue427.
author michael
date Thu, 25 Sep 2008 21:44:07 +0000
parents 9dc65bb3bd3f
children c6e9ff53dab4
files h264.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Thu Sep 25 20:03:57 2008 +0000
+++ b/h264.c	Thu Sep 25 21:44:07 2008 +0000
@@ -2391,7 +2391,7 @@
         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;