roqaudioenc: Fix crash with very small roq files
Fixes CID703669 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4ebf305951
commit
c0b17ea106
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user