mirror of https://git.videolan.org/git/ffmpeg.git
webmdashenc: Fix potential memory leak
Fix potential memory leak in WebM DASH Muxer. This fixes coverity scan CID 1295088. Signed-off-by: Vignesh Venkatasubramanian <vigneshv@google.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ba631b7914
commit
30ba28fe8e
|
@ -398,8 +398,8 @@ static int write_adaptation_set(AVFormatContext *s, int as_index)
|
||||||
ret = write_representation(s, s->streams[as->streams[i]],
|
ret = write_representation(s, s->streams[as->streams[i]],
|
||||||
representation_id, !width_in_as,
|
representation_id, !width_in_as,
|
||||||
!height_in_as, !sample_rate_in_as);
|
!height_in_as, !sample_rate_in_as);
|
||||||
if (ret) return ret;
|
|
||||||
av_free(representation_id);
|
av_free(representation_id);
|
||||||
|
if (ret) return ret;
|
||||||
}
|
}
|
||||||
avio_printf(s->pb, "</AdaptationSet>\n");
|
avio_printf(s->pb, "</AdaptationSet>\n");
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue