mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-24 07:50:11 +01:00
h2645_parse: add a function for uninitializing the packet
This commit is contained in:
@@ -227,10 +227,7 @@ static void hevc_parser_close(AVCodecParserContext *s)
|
||||
for (i = 0; i < FF_ARRAY_ELEMS(ctx->ps.pps_list); i++)
|
||||
av_buffer_unref(&ctx->ps.pps_list[i]);
|
||||
|
||||
for (i = 0; i < ctx->pkt.nals_allocated; i++)
|
||||
av_freep(&ctx->pkt.nals[i].rbsp_buffer);
|
||||
av_freep(&ctx->pkt.nals);
|
||||
ctx->pkt.nals_allocated = 0;
|
||||
ff_h2645_packet_uninit(&ctx->pkt);
|
||||
|
||||
av_freep(&ctx->pc.buffer);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user