summaryrefslogtreecommitdiffstats
path: root/libavcodec/cbs_av1.h
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-10-26 21:32:36 -0300
committerJames Almer <jamrial@gmail.com>2018-10-27 16:06:36 -0300
commit99ef8b8afd993fec3160c633f5fe87cceb7fe392 (patch)
tree95a2789f5aef3ff8d9b6d6eabfada05eff08f463 /libavcodec/cbs_av1.h
parentfef2162b6ea752c76a1220f59ad962b65a400fc3 (diff)
downloadffmpeg-streaming-99ef8b8afd993fec3160c633f5fe87cceb7fe392.zip
ffmpeg-streaming-99ef8b8afd993fec3160c633f5fe87cceb7fe392.tar.gz
avcodec/cbs_av1: fix parsing frame_size_with_refs
found_ref is not a single value in the bitstream. Fixes parsing files with frame size changes. Based on code from cbs_vp9. Reviewed-by: Mark Thompson <sw@jkqxz.net> Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/cbs_av1.h')
-rw-r--r--libavcodec/cbs_av1.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cbs_av1.h b/libavcodec/cbs_av1.h
index 0d7fd76..b66a09c 100644
--- a/libavcodec/cbs_av1.h
+++ b/libavcodec/cbs_av1.h
@@ -161,7 +161,7 @@ typedef struct AV1RawFrameHeader {
uint8_t render_width_minus_1;
uint8_t render_height_minus_1;
- uint8_t found_ref;
+ uint8_t found_ref[AV1_REFS_PER_FRAME];
uint8_t refresh_frame_flags;
uint8_t allow_intrabc;
OpenPOWER on IntegriCloud