diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 02:43:40 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-03-27 02:43:40 +0200 |
commit | a0820eaa8a5f96a3254b096e59fbd390f7b0afa6 (patch) | |
tree | 421ec8cb34ce45f4318dbb53d521bea63f6c8a8c /ffmpeg.c | |
parent | b62b9df7983217314188b3e0b1795c0e113b915a (diff) | |
download | ffmpeg-a0820eaa8a5f96a3254b096e59fbd390f7b0afa6.tar.gz |
ffmpeg: fix handling or empty audio packets
Fixes Ticket1131
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffmpeg.c')
-rw-r--r-- | ffmpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |