Browse Source

mpc8: do not leave padding after last frame in buffer for the next decode call

tags/n1.0
Kostya Shishkov 13 years ago
parent
commit
8f2aa89a5d
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/mpc8.c

+ 2
- 0
libavcodec/mpc8.c View File

@@ -411,6 +411,8 @@ static int mpc8_decode_frame(AVCodecContext * avctx, void *data,
c->cur_frame++;

c->last_bits_used = get_bits_count(gb);
if(get_bits_left(gb) < 8) // we have only padding left
c->last_bits_used = buf_size << 3;
if(c->cur_frame >= c->frames)
c->cur_frame = 0;



Loading…
Cancel
Save