Commit c116befc authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/xmv: use av_freep() to avoid leaving stale extradata pointer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 89f0fead
......@@ -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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment