diff options
-rw-r--r-- | src/video_decode.c | 1 |
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; } |