h264-encoder: Clean up current_packet in destroy

pull/65/head
Andri Yngvason 2022-06-29 11:39:46 +00:00
parent b8122725e2
commit dc82b3f29d
1 changed files with 1 additions and 0 deletions

View File

@ -568,6 +568,7 @@ void h264_encoder_destroy(struct h264_encoder* self)
return; return;
} }
vec_destroy(&self->current_packet);
av_buffer_unref(&self->hw_frames_ctx); av_buffer_unref(&self->hw_frames_ctx);
avcodec_free_context(&self->codec_ctx); avcodec_free_context(&self->codec_ctx);
av_buffer_unref(&self->hw_device_ctx); av_buffer_unref(&self->hw_device_ctx);