diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 02:53:06 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 02:57:57 +0200 |
commit | c0b17ea106b94f79255f81ec36ea50096e1ae985 (patch) | |
tree | c9017391b712bfd57f3e2a1985758c76cddaa1d0 | |
parent | 4ebf30595106947fccdffa01b6848cae4bed92cd (diff) | |
download | ffmpeg-c0b17ea106b94f79255f81ec36ea50096e1ae985.tar.gz |
roqaudioenc: Fix crash with very small roq files
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/roqaudioenc.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |