roqaudioenc: Fix crash with very small roq files

Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2012-10-19 02:53:06 +02:00
parent 4ebf305951
commit c0b17ea106

View File

@ -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;
}