You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
ffmpeg: fix handling or empty audio packets
Fixes Ticket1131 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
2
ffmpeg.c
2
ffmpeg.c
@@ -1083,7 +1083,7 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost,
|
|||||||
pkt.data = NULL;
|
pkt.data = NULL;
|
||||||
pkt.size = 0;
|
pkt.size = 0;
|
||||||
|
|
||||||
if (buf) {
|
if (buf && buf_size) {
|
||||||
if (!ost->output_frame) {
|
if (!ost->output_frame) {
|
||||||
ost->output_frame = avcodec_alloc_frame();
|
ost->output_frame = avcodec_alloc_frame();
|
||||||
if (!ost->output_frame) {
|
if (!ost->output_frame) {
|
||||||
|
Reference in New Issue
Block a user