summaryrefslogtreecommitdiffstats
path: root/libavcodec/h264_slice.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-02-12 03:43:17 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-02-12 04:37:35 +0100
commit69738466189a0f68b0a635b4804ef9cf7bee3672 (patch)
tree42f1a10cbeb7484013e8fa8e192b3dbbc01f8796 /libavcodec/h264_slice.c
parent873158fd76f387142f5a5e6835052f4fd0ec6911 (diff)
downloadffmpeg-streaming-69738466189a0f68b0a635b4804ef9cf7bee3672.zip
ffmpeg-streaming-69738466189a0f68b0a635b4804ef9cf7bee3672.tar.gz
avcodec/h264_slice: Fix dequant table init with field pictures
Fixes regression of Ticket4389 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/h264_slice.c')
-rw-r--r--libavcodec/h264_slice.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264_slice.c b/libavcodec/h264_slice.c
index 8a33553..2131338 100644
--- a/libavcodec/h264_slice.c
+++ b/libavcodec/h264_slice.c
@@ -1422,7 +1422,7 @@ int ff_h264_decode_slice_header(H264Context *h, H264SliceContext *sl)
}
}
- if (first_slice && h->dequant_coeff_pps != pps_id) {
+ if (!h->current_slice && h->dequant_coeff_pps != pps_id) {
h->dequant_coeff_pps = pps_id;
ff_h264_init_dequant_tables(h);
}
OpenPOWER on IntegriCloud