From f7db9124443c08471c8ab431767e8f2b36e961f8 Mon Sep 17 00:00:00 2001 From: Antonio Ospite Date: Sun, 28 Jul 2013 00:50:30 +0200 Subject: [PATCH] am7xxx-play: fix a crash when a packet cannot be encoded --- examples/am7xxx-play.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/am7xxx-play.c b/examples/am7xxx-play.c index f2e2a60..3230e67 100644 --- a/examples/am7xxx-play.c +++ b/examples/am7xxx-play.c @@ -440,7 +440,7 @@ static int am7xxx_play(const char *input_format_string, } } end_while: - if (!output_ctx.raw_output) + if (!output_ctx.raw_output && got_packet) av_free_packet(&out_packet); av_free_packet(&in_packet); } -- 2.1.4