diff --git a/recording-daemon/decoder.c b/recording-daemon/decoder.c index 7f0c897b7..89d1fe979 100644 --- a/recording-daemon/decoder.c +++ b/recording-daemon/decoder.c @@ -246,6 +246,8 @@ err: static int decoder_got_frame(decoder_t *dec, output_t *output, metafile_t *metafile) { // do we need to resample? AVFrame *dec_frame = decoder_resample_frame(dec); + if (!dec_frame) + return -1; // handle mix output pthread_mutex_lock(&metafile->mix_lock);