From 1825e27d0f9627faeb6ad59c50d6c64c7d3003f3 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Thu, 31 Jan 2013 21:20:40 +0100 Subject: video_decode: Fix a leak when decoding fails --- src/video_decode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/video_decode.c b/src/video_decode.c index b923f93..dc5d00e 100644 --- a/src/video_decode.c +++ b/src/video_decode.c @@ -155,6 +155,7 @@ video_decode_get_frame(struct video_decode *_vd, struct video_frame **frame) &got_picture, &packet); if (decoded < 0) { fprintf(stderr, "Error while decoding frame!\n"); + av_free_packet(&packet); return -2; } -- cgit