summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:20:40 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-31 21:20:40 +0100
commit1825e27d0f9627faeb6ad59c50d6c64c7d3003f3 (patch)
treef16f53db4dee22b706c1b0f2564b52573aa4b690 /src
parentb157dca53a868e059e3366a024fa314ae0783bb8 (diff)
downloadadvtime-1825e27d0f9627faeb6ad59c50d6c64c7d3003f3.tar.gz
advtime-1825e27d0f9627faeb6ad59c50d6c64c7d3003f3.tar.bz2
advtime-1825e27d0f9627faeb6ad59c50d6c64c7d3003f3.zip
video_decode: Fix a leak when decoding fails
Diffstat (limited to 'src')
-rw-r--r--src/video_decode.c1
1 files changed, 1 insertions, 0 deletions
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;
}