From a0820eaa8a5f96a3254b096e59fbd390f7b0afa6 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 27 Mar 2012 02:43:40 +0200 Subject: ffmpeg: fix handling or empty audio packets Fixes Ticket1131 Signed-off-by: Michael Niedermayer --- ffmpeg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ffmpeg.c') diff --git a/ffmpeg.c b/ffmpeg.c index f66828ffa5..d5e789e111 100644 --- a/ffmpeg.c +++ b/ffmpeg.c @@ -1083,7 +1083,7 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost, pkt.data = NULL; pkt.size = 0; - if (buf) { + if (buf && buf_size) { if (!ost->output_frame) { ost->output_frame = avcodec_alloc_frame(); if (!ost->output_frame) { -- cgit v1.2.3