summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--demux/demux_lavf.c4
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);