mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-12-14 23:29:39 +00:00
avformat/xmv: use av_freep() to avoid leaving stale extradata pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
89f0feadc2
commit
c116befc92
@ -381,7 +381,7 @@ static int xmv_process_packet_header(AVFormatContext *s)
|
||||
av_assert0(xmv->video.stream_index < s->nb_streams);
|
||||
|
||||
if (vst->codec->extradata_size < 4) {
|
||||
av_free(vst->codec->extradata);
|
||||
av_freep(&vst->codec->extradata);
|
||||
|
||||
ff_alloc_extradata(vst->codec, 4);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user