]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vmdav.c
vda: removes useless doxygen command.
[ffmpeg] / libavcodec / vmdav.c
index ec7c967f743b0fd5a69024d95bd938998dc50a9c..7006f61f2b52d5be721fbb89da10ba1ff2f91c8e 100644 (file)
@@ -618,7 +618,7 @@ static int vmdaudio_decode_frame(AVCodecContext *avctx, void *data,
     /* decode audio chunks */
     if (audio_chunks > 0) {
         buf_end = buf + buf_size;
-        while (buf < buf_end) {
+        while ( buf_end - buf >= s->chunk_size) {
             if (s->out_bps == 2) {
                 decode_audio_s16(output_samples_s16, buf, s->chunk_size,
                                  avctx->channels);