Commit c0b17ea1 authored by Michael Niedermayer's avatar Michael Niedermayer

roqaudioenc: Fix crash with very small roq files

Fixes CID703669
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4ebf3059
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment