Commit 12a40424 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '33452aed'

* commit '33452aed':
  hevc: store the VPS list as an AVBufferRef, just like the others *PS

Conflicts:
	libavcodec/hevc.c
	libavcodec/hevc_ps.c

See: 36658c97Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents 1dbb3cfa 33452aed
...@@ -336,9 +336,6 @@ int ff_hevc_decode_nal_vps(HEVCContext *s) ...@@ -336,9 +336,6 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
av_log(s->avctx, AV_LOG_DEBUG, "Decoding VPS\n"); av_log(s->avctx, AV_LOG_DEBUG, "Decoding VPS\n");
if (!vps)
return AVERROR(ENOMEM);
vps_id = get_bits(gb, 4); vps_id = get_bits(gb, 4);
if (vps_id >= MAX_VPS_COUNT) { if (vps_id >= MAX_VPS_COUNT) {
av_log(s->avctx, AV_LOG_ERROR, "VPS id out of range: %d\n", vps_id); av_log(s->avctx, AV_LOG_ERROR, "VPS id out of range: %d\n", vps_id);
...@@ -416,7 +413,6 @@ int ff_hevc_decode_nal_vps(HEVCContext *s) ...@@ -416,7 +413,6 @@ int ff_hevc_decode_nal_vps(HEVCContext *s)
av_buffer_unref(&s->vps_list[vps_id]); av_buffer_unref(&s->vps_list[vps_id]);
s->vps_list[vps_id] = vps_buf; s->vps_list[vps_id] = vps_buf;
return 0; return 0;
err: err:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment