summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'fftools/ffmpeg.c')
-rw-r--r--fftools/ffmpeg.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg.c b/fftools/ffmpeg.c
index bb29e3cec5..0e38d6d185 100644
--- a/fftools/ffmpeg.c
+++ b/fftools/ffmpeg.c
@@ -1981,6 +1981,9 @@ static void flush_encoders(void)
AVPacket *pkt = ost->pkt;
int pkt_size;
+ if (!pkt)
+ break;
+
switch (enc->codec_type) {
case AVMEDIA_TYPE_AUDIO:
desc = "audio";