]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/libmp3lame.c
x86/dsputil: fix argument declaration in vector_clipf
[ffmpeg] / libavcodec / libmp3lame.c
index e6cb64b8766d4375d8cbd0566eaec662ba9d21ab..a8c39cc6c7a4a8e1b1e2ba60337695d15ea1cdc9 100644 (file)
@@ -208,6 +208,8 @@ static int mp3lame_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
         default:
             return AVERROR_BUG;
         }
+    } else if (!s->afq.frame_alloc) {
+        lame_result = 0;
     } else {
         lame_result = lame_encode_flush(s->gfp, s->buffer + s->buffer_index,
                                         s->buffer_size - s->buffer_index);