mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/matroskadec: fix memleak on stream side data failure
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
3ab1311aba
commit
8396d54d3c
|
@ -1931,8 +1931,10 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track)
|
|||
|
||||
ret = av_stream_add_side_data(st, AV_PKT_DATA_SPHERICAL, (uint8_t *)spherical,
|
||||
spherical_size);
|
||||
if (ret < 0)
|
||||
if (ret < 0) {
|
||||
av_freep(&spherical);
|
||||
return ret;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue