Commit a0820eaa authored by Michael Niedermayer's avatar Michael Niedermayer

ffmpeg: fix handling or empty audio packets

Fixes Ticket1131
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b62b9df7
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment