diff --git a/libavcodec/roqaudioenc.c b/libavcodec/roqaudioenc.c index d69ccbfbe9..bbf9b979fd 100644 --- a/libavcodec/roqaudioenc.c +++ b/libavcodec/roqaudioenc.c @@ -158,6 +158,8 @@ static int roq_dpcm_encode_frame(AVCodecContext *avctx, AVPacket *avpkt, context->input_frames++; return 0; } + } + if (context->input_frames < 8) { in = context->frame_buffer; }