Commit 12b59e57 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegtsenc: Use correct deallocation code on failure of pids array allocation

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 5f8300af
......@@ -623,8 +623,8 @@ static int mpegts_write_header(AVFormatContext *s)
pids = av_malloc_array(s->nb_streams, sizeof(*pids));
if (!pids) {
av_free(service);
return AVERROR(ENOMEM);
ret = AVERROR(ENOMEM);
goto fail;
}
/* assign pids to each stream */
......
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