summaryrefslogtreecommitdiff
path: root/libavcodec/h264_ps.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2017-07-29 22:03:55 +0200
committerAnton Khirnov <anton@khirnov.net>2020-03-20 09:16:05 +0100
commit6eae7e564482c70c785ceb33c8ad476c49f24e53 (patch)
treed395a7978e1d73895f88f2dc1e54f873af0bc0c1 /libavcodec/h264_ps.h
parentbdd31feec934bad07f5035250f9cb1ec5b571062 (diff)
h264dec: do not export the chroma sample location immediately on parsing the SPS
This SPS is not necessarily the one that will be used. Export the chroma location along with all the other SPS properties.
Diffstat (limited to 'libavcodec/h264_ps.h')
-rw-r--r--libavcodec/h264_ps.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h264_ps.h b/libavcodec/h264_ps.h
index 2cc1cd6254..d6798ca0ef 100644
--- a/libavcodec/h264_ps.h
+++ b/libavcodec/h264_ps.h
@@ -77,6 +77,8 @@ typedef struct SPS {
enum AVColorPrimaries color_primaries;
enum AVColorTransferCharacteristic color_trc;
enum AVColorSpace colorspace;
+ enum AVChromaLocation chroma_location;
+
int timing_info_present_flag;
uint32_t num_units_in_tick;
uint32_t time_scale;