You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mxfenc: Don't free priv_data of AVStream
It will be freed when the AVStream is freed later anyway. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
Michael Niedermayer
parent
f1d46db926
commit
360aeccf46
@@ -554,16 +554,6 @@ static void mxf_write_metadata_key(AVIOContext *pb, unsigned int value)
|
|||||||
avio_wb24(pb, value);
|
avio_wb24(pb, value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void mxf_free(AVFormatContext *s)
|
|
||||||
{
|
|
||||||
int i;
|
|
||||||
|
|
||||||
for (i = 0; i < s->nb_streams; i++) {
|
|
||||||
AVStream *st = s->streams[i];
|
|
||||||
av_freep(&st->priv_data);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
static const MXFCodecUL *mxf_get_data_definition_ul(int type)
|
static const MXFCodecUL *mxf_get_data_definition_ul(int type)
|
||||||
{
|
{
|
||||||
const MXFCodecUL *uls = ff_mxf_data_definition_uls;
|
const MXFCodecUL *uls = ff_mxf_data_definition_uls;
|
||||||
@@ -3029,8 +3019,6 @@ end:
|
|||||||
av_freep(&mxf->timecode_track->priv_data);
|
av_freep(&mxf->timecode_track->priv_data);
|
||||||
av_freep(&mxf->timecode_track);
|
av_freep(&mxf->timecode_track);
|
||||||
|
|
||||||
mxf_free(s);
|
|
||||||
|
|
||||||
return err < 0 ? err : 0;
|
return err < 0 ? err : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user