diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 04:53:06 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-19 04:57:57 +0400 |
commit | c0b17ea106b94f79255f81ec36ea50096e1ae985 (patch) | |
tree | c9017391b712bfd57f3e2a1985758c76cddaa1d0 /libavcodec | |
parent | 4ebf30595106947fccdffa01b6848cae4bed92cd (diff) |
roqaudioenc: Fix crash with very small roq files
Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec')
-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; } |