diff options
author | James Almer <jamrial@gmail.com> | 2017-04-02 00:16:02 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2017-04-09 13:46:35 -0300 |
commit | f1533979a22834c29f71107a8460fb936782b5fe (patch) | |
tree | 9053ad20062d9817587711ca54e9e8b00a2f4a8f /libavcodec/hevc_parse.c | |
parent | 159ab4625bd3641e79b564335be8069dca881978 (diff) | |
download | ffmpeg-f1533979a22834c29f71107a8460fb936782b5fe.tar.gz |
avcodec/hevc_parse: allow setting apply_defdispwin when decoding SPS NAL units
Reviewed-by: nevcairiel
Signed-off-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavcodec/hevc_parse.c')
-rw-r--r-- | libavcodec/hevc_parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libavcodec/hevc_parse.c b/libavcodec/hevc_parse.c index 25c44fd95d..ee4cd54d3e 100644 --- a/libavcodec/hevc_parse.c +++ b/libavcodec/hevc_parse.c @@ -23,7 +23,7 @@ static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets *ps, int is_nalff, int nal_length_size, int err_recognition, - void *logctx) + int apply_defdispwin, void *logctx) { int i; int ret = 0; @@ -45,7 +45,7 @@ static int hevc_decode_nal_units(const uint8_t *buf, int buf_size, HEVCParamSets goto done; break; case HEVC_NAL_SPS: - ret = ff_hevc_decode_nal_sps(&nal->gb, logctx, ps, 1); + ret = ff_hevc_decode_nal_sps(&nal->gb, logctx, ps, apply_defdispwin); if (ret < 0) goto done; break; @@ -69,8 +69,8 @@ done: } int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, - int *is_nalff, int *nal_length_size, - int err_recognition, void *logctx) + int *is_nalff, int *nal_length_size, int err_recognition, + int apply_defdispwin, void *logctx) { int ret = 0; GetByteContext gb; @@ -109,7 +109,7 @@ int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, } ret = hevc_decode_nal_units(gb.buffer, nalsize, ps, *is_nalff, *nal_length_size, - err_recognition, logctx); + err_recognition, apply_defdispwin, logctx); if (ret < 0) { av_log(logctx, AV_LOG_ERROR, "Decoding nal unit %d %d from hvcC failed\n", @@ -126,7 +126,7 @@ int ff_hevc_decode_extradata(const uint8_t *data, int size, HEVCParamSets *ps, } else { *is_nalff = 0; ret = hevc_decode_nal_units(data, size, ps, *is_nalff, *nal_length_size, - err_recognition, logctx); + err_recognition, apply_defdispwin, logctx); if (ret < 0) return ret; } |