Mercurial > libavcodec.hg
diff dxva2_h264.c @ 10979:776dba50775c libavcodec
Move +52 from the loop filter to the alpha/beta offsets in the context.
This should fix a segfault, also it might be faster on systems where the
+52 wasnt free.
author | michael |
---|---|
date | Sat, 23 Jan 2010 18:05:30 +0000 |
parents | b3e3f5cb4b46 |
children | 9f771d4312ed |
line wrap: on
line diff
--- a/dxva2_h264.c Sat Jan 23 18:04:09 2010 +0000 +++ b/dxva2_h264.c Sat Jan 23 18:05:30 2010 +0000 @@ -225,8 +225,8 @@ slice->num_ref_idx_l0_active_minus1 = h->ref_count[0] - 1; if (h->list_count > 1) slice->num_ref_idx_l1_active_minus1 = h->ref_count[1] - 1; - slice->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2; - slice->slice_beta_offset_div2 = h->slice_beta_offset / 2; + slice->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2 - 26; + slice->slice_beta_offset_div2 = h->slice_beta_offset / 2 - 26; slice->Reserved8Bits = 0; for (list = 0; list < 2; list++) {