diff options
author | wm4 <wm4@nowhere> | 2016-03-03 11:04:32 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-03 11:04:32 +0100 |
commit | a4e29e67f91a24cb18443f7b21e74401781161f4 (patch) | |
tree | bce7cdc72234cc6aa998460574584976b5e44bff /demux | |
parent | 3a7563a99983279394f9a4973a45f12aeb07cf7c (diff) | |
download | mpv-a4e29e67f91a24cb18443f7b21e74401781161f4.tar.bz2 mpv-a4e29e67f91a24cb18443f7b21e74401781161f4.tar.xz |
demux_lavf: don't copy cover art picture
Use the AVPacket refcounting mechanism instead.
Diffstat (limited to 'demux')
-rw-r--r-- | demux/demux_lavf.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |