diff options
author | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-20 16:02:10 +0200 |
---|---|---|
committer | Matthieu Bouron <matthieu.bouron@stupeflix.com> | 2016-06-20 16:09:09 +0200 |
commit | 0ea58059d635484957b332fe9432351381fae6cd (patch) | |
tree | b279eff229ef626f63a3167397079fe329e5bced /libavcodec/h264.c | |
parent | acfab2dce6d30ab30b953d10e2e0097d8f8cb29f (diff) | |
download | ffmpeg-0ea58059d635484957b332fe9432351381fae6cd.tar.gz |
lavc/h264_ps: add ff_h264_ps_uninit and use it
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r-- | libavcodec/h264.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index f2dc47338c..9d2cabaa04 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -377,15 +377,7 @@ static av_cold int h264_decode_end(AVCodecContext *avctx) h->nb_slice_ctx = 0; ff_h264_sei_uninit(&h->sei); - - for (i = 0; i < MAX_SPS_COUNT; i++) - av_buffer_unref(&h->ps.sps_list[i]); - - for (i = 0; i < MAX_PPS_COUNT; i++) - av_buffer_unref(&h->ps.pps_list[i]); - - av_buffer_unref(&h->ps.sps_ref); - av_buffer_unref(&h->ps.pps_ref); + ff_h264_ps_uninit(&h->ps); ff_h2645_packet_uninit(&h->pkt); |