mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
Prevent double free of side_data when AVFMT_FLAG_KEEP_SIDE_DATA flag is set
This commit is contained in:
parent
5241bc2773
commit
d64066f6e8
@ -1146,7 +1146,10 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
||||
if (!st->need_parsing || !st->parser) {
|
||||
/* no parsing needed: we just output the packet as is */
|
||||
/* raw data support */
|
||||
*pkt = st->cur_pkt; st->cur_pkt.data= NULL;
|
||||
*pkt = st->cur_pkt;
|
||||
st->cur_pkt.data= NULL;
|
||||
st->cur_pkt.side_data_elems = 0;
|
||||
st->cur_pkt.side_data = NULL;
|
||||
compute_pkt_fields(s, st, NULL, pkt);
|
||||
s->cur_st = NULL;
|
||||
if ((s->iformat->flags & AVFMT_GENERIC_INDEX) &&
|
||||
|
Loading…
Reference in New Issue
Block a user