Mercurial > libavcodec.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
10978:8754b8361dc9 | 10979:776dba50775c |
---|---|
223 slice->chroma_log2_weight_denom = h->chroma_log2_weight_denom; | 223 slice->chroma_log2_weight_denom = h->chroma_log2_weight_denom; |
224 if (h->list_count > 0) | 224 if (h->list_count > 0) |
225 slice->num_ref_idx_l0_active_minus1 = h->ref_count[0] - 1; | 225 slice->num_ref_idx_l0_active_minus1 = h->ref_count[0] - 1; |
226 if (h->list_count > 1) | 226 if (h->list_count > 1) |
227 slice->num_ref_idx_l1_active_minus1 = h->ref_count[1] - 1; | 227 slice->num_ref_idx_l1_active_minus1 = h->ref_count[1] - 1; |
228 slice->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2; | 228 slice->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2 - 26; |
229 slice->slice_beta_offset_div2 = h->slice_beta_offset / 2; | 229 slice->slice_beta_offset_div2 = h->slice_beta_offset / 2 - 26; |
230 slice->Reserved8Bits = 0; | 230 slice->Reserved8Bits = 0; |
231 | 231 |
232 for (list = 0; list < 2; list++) { | 232 for (list = 0; list < 2; list++) { |
233 unsigned i; | 233 unsigned i; |
234 for (i = 0; i < FF_ARRAY_ELEMS(slice->RefPicList[list]); i++) { | 234 for (i = 0; i < FF_ARRAY_ELEMS(slice->RefPicList[list]); i++) { |