diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2011-12-17 04:42:04 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2011-12-28 02:17:28 +0100 |
commit | 575cbbffaaa16fde167e6c7a577799da68b6937b (patch) | |
tree | 5c4d5c853fe36a4826a46dfce6c12344b45406b3 | |
parent | ccdc68eb35b17b227a24303fbaf52df73c9911e3 (diff) | |
download | ffmpeg-575cbbffaaa16fde167e6c7a577799da68b6937b.tar.gz |
h264: fix init of topleft ref/mv.
Fixes Ticket778
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 680880c98db2817437e19c3fc7f6349261bbbbb0)
-rw-r--r-- | libavcodec/h264.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.h b/libavcodec/h264.h index a6f39730ff..f7948a5a5a 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@ -1075,7 +1075,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ AV_ZERO32(h->mv_cache [list][scan8[0] + 4 - 1*8]); h->ref_cache[list][scan8[0] + 4 - 1*8]= topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE; } - if(h->ref_cache[list][scan8[0] + 4 - 1*8] < 0){ + if(h->ref_cache[list][scan8[0] + 2 - 1*8] < 0 || h->ref_cache[list][scan8[0] + 4 - 1*8] < 0){ if(USES_LIST(topleft_type, list)){ const int b_xy = h->mb2b_xy [topleft_xy] + 3 + h->b_stride + (h->topleft_partition & 2*h->b_stride); const int b8_xy= 4*topleft_xy + 1 + (h->topleft_partition & 2); |