Commit 03aa4cd2 authored by Martin Storsjö's avatar Martin Storsjö Committed by Thomas Volkert

rtpdec_vp9: Make sure to free the temp buffer on close

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 228568fc
...@@ -279,11 +279,17 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx, ...@@ -279,11 +279,17 @@ static int vp9_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_vp9_ctx,
return 0; return 0;
} }
static void vp9_close_context(PayloadContext *vp9)
{
ffio_free_dyn_buf(&vp9->buf);
}
RTPDynamicProtocolHandler ff_vp9_dynamic_handler = { RTPDynamicProtocolHandler ff_vp9_dynamic_handler = {
.enc_name = "VP9", .enc_name = "VP9",
.codec_type = AVMEDIA_TYPE_VIDEO, .codec_type = AVMEDIA_TYPE_VIDEO,
.codec_id = AV_CODEC_ID_VP9, .codec_id = AV_CODEC_ID_VP9,
.priv_data_size = sizeof(PayloadContext), .priv_data_size = sizeof(PayloadContext),
.init = vp9_init, .init = vp9_init,
.close = vp9_close_context,
.parse_packet = vp9_handle_packet .parse_packet = vp9_handle_packet
}; };
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