Browse Source

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

Signed-off-by: Aman Gupta <aman@tmm1.net>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.2.11
Aman Gupta Michael Niedermayer 8 years ago
parent
commit
55776eae21
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      libavcodec/hevc.h
  2. +1
    -0
      libavcodec/hevc_ps.c

+ 1
- 0
libavcodec/hevc.h View File

@@ -411,6 +411,7 @@ typedef struct HEVCSPS {
HEVCWindow pic_conf_win; HEVCWindow pic_conf_win;


int bit_depth; int bit_depth;
int bit_depth_chroma;
int pixel_shift; int pixel_shift;
enum AVPixelFormat pix_fmt; enum AVPixelFormat pix_fmt;




+ 1
- 0
libavcodec/hevc_ps.c View File

@@ -933,6 +933,7 @@ int ff_hevc_parse_sps(HEVCSPS *sps, GetBitContext *gb, unsigned int *sps_id,
sps->bit_depth, bit_depth_chroma); sps->bit_depth, bit_depth_chroma);
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
sps->bit_depth_chroma = bit_depth_chroma;


ret = map_pixel_format(avctx, sps); ret = map_pixel_format(avctx, sps);
if (ret < 0) if (ret < 0)


Loading…
Cancel
Save