Browse Source

roqaudioenc: Fix crash with very small roq files

Fixes CID703669
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
c0b17ea106
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/roqaudioenc.c

+ 2
- 0
libavcodec/roqaudioenc.c View File

@@ -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…
Cancel
Save