Commit 4d70023a authored by Michael Niedermayer's avatar Michael Niedermayer

h264: fix init of topleft ref/mv.

Fixes Ticket778
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 53b65031
...@@ -633,7 +633,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){ ...@@ -633,7 +633,7 @@ static void fill_decode_caches(H264Context *h, int mb_type){
AV_ZERO32(mv_cache[4 - 1*8]); AV_ZERO32(mv_cache[4 - 1*8]);
ref_cache[4 - 1*8]= topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE; ref_cache[4 - 1*8]= topright_type ? LIST_NOT_USED : PART_NOT_AVAILABLE;
} }
if(ref_cache[4 - 1*8] < 0){ if(ref_cache[2 - 1*8] < 0 || ref_cache[4 - 1*8] < 0){
if(USES_LIST(topleft_type, list)){ if(USES_LIST(topleft_type, list)){
const int b_xy = h->mb2b_xy[topleft_xy] + 3 + b_stride + (h->topleft_partition & 2*b_stride); const int b_xy = h->mb2b_xy[topleft_xy] + 3 + b_stride + (h->topleft_partition & 2*b_stride);
const int b8_xy= 4*topleft_xy + 1 + (h->topleft_partition & 2); const int b8_xy= 4*topleft_xy + 1 + (h->topleft_partition & 2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment