summaryrefslogtreecommitdiff
path: root/libavcodec/vaapi_h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2010-01-23 18:05:30 +0000
committerMichael Niedermayer <michaelni@gmx.at>2010-01-23 18:05:30 +0000
commit0c32e19d584ba6ddbc27f0a796260404daaf4b6a (patch)
tree3f381e5a8a8119f0ff1c830bcc05880a32929c54 /libavcodec/vaapi_h264.c
parent6231d0983b1e773c5244f84b0fd2b6a26c01eea7 (diff)
downloadffmpeg-0c32e19d584ba6ddbc27f0a796260404daaf4b6a.tar.gz
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. Originally committed as revision 21406 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/vaapi_h264.c')
-rw-r--r--libavcodec/vaapi_h264.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/vaapi_h264.c b/libavcodec/vaapi_h264.c
index 9f440c0a05..3910bad6af 100644
--- a/libavcodec/vaapi_h264.c
+++ b/libavcodec/vaapi_h264.c
@@ -317,8 +317,8 @@ static int decode_slice(AVCodecContext *avctx,
slice_param->cabac_init_idc = h->cabac_init_idc;
slice_param->slice_qp_delta = s->qscale - h->pps.init_qp;
slice_param->disable_deblocking_filter_idc = h->deblocking_filter < 2 ? !h->deblocking_filter : h->deblocking_filter;
- slice_param->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2;
- slice_param->slice_beta_offset_div2 = h->slice_beta_offset / 2;
+ slice_param->slice_alpha_c0_offset_div2 = h->slice_alpha_c0_offset / 2 - 26;
+ slice_param->slice_beta_offset_div2 = h->slice_beta_offset / 2 - 26;
slice_param->luma_log2_weight_denom = h->luma_log2_weight_denom;
slice_param->chroma_log2_weight_denom = h->chroma_log2_weight_denom;