avformat/mov: fix av_freep for dovi pointer

Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
pull/336/head
Limin Wang 5 years ago committed by Jun Zhao
parent 4fd0559b77
commit 1112823962
  1. 2
      libavformat/mov.c

@ -6827,7 +6827,7 @@ static int mov_read_dvcc_dvvc(MOVContext *c, AVIOContext *pb, MOVAtom atom)
ret = av_stream_add_side_data(st, AV_PKT_DATA_DOVI_CONF,
(uint8_t *)dovi, dovi_size);
if (ret < 0) {
av_freep(dovi);
av_free(dovi);
return ret;
}

Loading…
Cancel
Save