summaryrefslogtreecommitdiff
path: root/libavcodec/h264dec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-05-01 21:42:54 +0200
committerAnton Khirnov <anton@khirnov.net>2020-04-10 15:52:41 +0200
commit5e316096fa9ba4493d9dbb48847ad8e0b0e188c3 (patch)
treec0c6cb248b47ef3b71dbb83bb8f4756d45ac86cd /libavcodec/h264dec.c
parentec7f33a38e341807c0ff9530e4dc7e175a86f437 (diff)
h264_ps: make the PPS hold a reference to its SPS
It represents the relationship between them more naturally and will be useful in the following commits. Allows significantly more frames in fate-h264-attachment-631 to be decoded.
Diffstat (limited to 'libavcodec/h264dec.c')
-rw-r--r--libavcodec/h264dec.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/h264dec.c b/libavcodec/h264dec.c
index 8673d5a2c2..b8a1879522 100644
--- a/libavcodec/h264dec.c
+++ b/libavcodec/h264dec.c
@@ -764,9 +764,7 @@ end:
* past end by one (callers fault) and resync_mb_y != 0
* causes problems for the first MB line, too.
*/
- if (!FIELD_PICTURE(h) && h->current_slice &&
- h->ps.sps == (const SPS*)h->ps.sps_list[h->ps.pps->sps_id]->data &&
- h->enable_er) {
+ if (!FIELD_PICTURE(h) && h->current_slice && h->enable_er) {
H264SliceContext *sl = h->slice_ctx;
int use_last_pic = h->last_pic_for_ec.f->buf[0] && !sl->ref_count[0];