summaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorgcocherel <gildas.cocherel@laposte.net>2013-11-26 08:49:49 +0100
committerMichael Niedermayer <michaelni@gmx.at>2013-11-26 13:22:01 +0100
commit3c846fda1ca306d5e265ec87948f57e5c5d431ce (patch)
tree400392c7b21ffa29034e5070db43223dfe8e1a50 /libavcodec
parent75ec40b083ff40655a81c709ba5c9d867b2ed8a4 (diff)
downloadffmpeg-streaming-3c846fda1ca306d5e265ec87948f57e5c5d431ce.zip
ffmpeg-streaming-3c846fda1ca306d5e265ec87948f57e5c5d431ce.tar.gz
HEVC : valgrind fix : vps_list
cherry picked from commit 211c39ade87bc079eabc862a6b684544dc88a786 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/hevc_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/hevc_parser.c b/libavcodec/hevc_parser.c
index 1ba9508..dc1f6d5 100644
--- a/libavcodec/hevc_parser.c
+++ b/libavcodec/hevc_parser.c
@@ -187,7 +187,7 @@ static inline int parse_nal_units(AVCodecParserContext *s, AVCodecContext *avctx
}
if (h->sps != (HEVCSPS*)h->sps_list[h->pps->sps_id]->data) {
h->sps = (HEVCSPS*)h->sps_list[h->pps->sps_id]->data;
- h->vps = h->vps_list[h->sps->vps_id];
+ h->vps = (HEVCVPS*)h->vps_list[h->sps->vps_id]->data;
}
if (!sh->first_slice_in_pic_flag) {
@@ -325,7 +325,7 @@ static void hevc_close(AVCodecParserContext *s)
av_freep(&pc->buffer);
for (i = 0; i < FF_ARRAY_ELEMS(h->vps_list); i++)
- av_freep(&h->vps_list[i]);
+ av_buffer_unref(&h->vps_list[i]);
for (i = 0; i < FF_ARRAY_ELEMS(h->sps_list); i++)
av_buffer_unref(&h->sps_list[i]);
for (i = 0; i < FF_ARRAY_ELEMS(h->pps_list); i++)
OpenPOWER on IntegriCloud