mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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