From a4e29e67f91a24cb18443f7b21e74401781161f4 Mon Sep 17 00:00:00 2001 From: wm4 Date: Thu, 3 Mar 2016 11:04:32 +0100 Subject: demux_lavf: don't copy cover art picture Use the AVPacket refcounting mechanism instead. --- demux/demux_lavf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'demux') diff --git a/demux/demux_lavf.c b/demux/demux_lavf.c index 8a92a2886f..c6430f73f0 100644 --- a/demux/demux_lavf.c +++ b/demux/demux_lavf.c @@ -577,8 +577,8 @@ static void handle_new_stream(demuxer_t *demuxer, int i) sh = demux_alloc_sh_stream(STREAM_VIDEO); if (st->disposition & AV_DISPOSITION_ATTACHED_PIC) { - sh->attached_picture = new_demux_packet_from(st->attached_pic.data, - st->attached_pic.size); + sh->attached_picture = + new_demux_packet_from_avpacket(&st->attached_pic); if (sh->attached_picture) { sh->attached_picture->pts = 0; talloc_steal(sh, sh->attached_picture); -- cgit v1.2.3