Commit 88c8e4af authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/hevc: fix mix of av_malloc() with free()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9563e67e
......@@ -1056,7 +1056,7 @@ int ff_hevc_annexb2mp4(AVIOContext *pb, const uint8_t *buf_in,
}
end:
free(start);
av_free(start);
if (ps_count)
*ps_count = num_ps;
return ret;
......@@ -1109,7 +1109,7 @@ int ff_hevc_annexb2mp4_buf(const uint8_t *buf_in, uint8_t **buf_out,
*size = avio_close_dyn_buf(pb, buf_out);
end:
free(start);
av_free(start);
if (ps_count)
*ps_count = num_ps;
return ret;
......
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