summaryrefslogtreecommitdiff
path: root/src/dxr3/ffmpeg_encoder.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dxr3/ffmpeg_encoder.c')
-rw-r--r--src/dxr3/ffmpeg_encoder.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dxr3/ffmpeg_encoder.c b/src/dxr3/ffmpeg_encoder.c
index 1dd912dba..9b77d0786 100644
--- a/src/dxr3/ffmpeg_encoder.c
+++ b/src/dxr3/ffmpeg_encoder.c
@@ -319,7 +319,7 @@ static int lavc_on_unneeded(dxr3_driver_t *drv)
lprintf("flushing buffers\n");
if (this->context) {
avcodec_close(this->context);
- free(this->context);
+ avcodec_free_context (&this->context);
free(this->picture);
this->context = NULL;
this->picture = NULL;