mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-24 11:49:48 +00:00
avpacket: fix duplicating side data.
Use correct side data size instead of just zeroed field.
This commit is contained in:
parent
21e2dc9fb7
commit
cf3a1948e9
@ -146,7 +146,7 @@ int av_dup_packet(AVPacket *pkt)
|
||||
pkt->side_data_elems * sizeof(*pkt->side_data));
|
||||
for (i = 0; i < pkt->side_data_elems; i++)
|
||||
DUP_DATA(pkt->side_data[i].data, tmp_pkt.side_data[i].data,
|
||||
pkt->side_data[i].size, 1);
|
||||
tmp_pkt.side_data[i].size, 1);
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user