Commit 8396d54d authored by James Almer's avatar James Almer

avformat/matroskadec: fix memleak on stream side data failure

Signed-off-by: 's avatarJames Almer <jamrial@gmail.com>
parent 3ab1311a
...@@ -1931,8 +1931,10 @@ static int mkv_parse_video_projection(AVStream *st, const MatroskaTrack *track) ...@@ -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, ret = av_stream_add_side_data(st, AV_PKT_DATA_SPHERICAL, (uint8_t *)spherical,
spherical_size); spherical_size);
if (ret < 0) if (ret < 0) {
av_freep(&spherical);
return ret; return ret;
}
return 0; return 0;
} }
......
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