Browse Source

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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
c116befc92
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/xmv.c

+ 1
- 1
libavformat/xmv.c View File

@@ -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…
Cancel
Save