[FFmpeg-cvslog] avcodec/hevc_ps: extract one SPS fields required for hvcC construction

Aman Gupta git at videolan.org
Thu Feb 1 01:53:36 EET 2018


ffmpeg | branch: release/2.8 | Aman Gupta <aman at tmm1.net> | Tue Sep 26 18:04:12 2017 -0700| [b40576a9a436aa9b6723f0c0c2501a06bcc45c8d] | committer: Michael Niedermayer

avcodec/hevc_ps: extract one SPS fields required for hvcC construction

Signed-off-by: Aman Gupta <aman at tmm1.net>
Reviewed-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b40576a9a436aa9b6723f0c0c2501a06bcc45c8d
---

 libavcodec/hevc.h    | 1 +
 libavcodec/hevc_ps.c | 1 +
 2 files changed, 2 insertions(+)

diff --git a/libavcodec/hevc.h b/libavcodec/hevc.h
index d84e661600..ab59b5d4fd 100644
--- a/libavcodec/hevc.h
+++ b/libavcodec/hevc.h
@@ -407,6 +407,7 @@ typedef struct HEVCSPS {
     HEVCWindow pic_conf_win;
 
     int bit_depth;
+    int bit_depth_chroma;
     int pixel_shift;
     enum AVPixelFormat pix_fmt;
 
diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c
index 1c9ba06595..75222981ce 100644
--- a/libavcodec/hevc_ps.c
+++ b/libavcodec/hevc_ps.c
@@ -902,6 +902,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
                sps->bit_depth, bit_depth_chroma);
         return AVERROR_INVALIDDATA;
     }
+    sps->bit_depth_chroma = bit_depth_chroma;
 
     ret = map_pixel_format(avctx, sps);
     if (ret < 0)



More information about the ffmpeg-cvslog mailing list