Browse Source

Merge commit 'e30b068ef79f604ff439418da07f7e2efd01d4ea'

* commit 'e30b068ef79f604ff439418da07f7e2efd01d4ea':
  wmapro: make sure there is room to store the current packet

The check is replaced by an assert as it is impossible to occur
See: 780d45473c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.0
Michael Niedermayer 12 years ago
parent
commit
3e33db3f65
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/wmaprodec.c

+ 2
- 0
libavcodec/wmaprodec.c View File

@@ -1469,6 +1469,8 @@ static void save_bits(WMAProDecodeCtx *s, GetBitContext* gb, int len,
return;
}

av_assert0(len <= put_bits_left(&s->pb));

s->num_saved_bits += len;
if (!append) {
avpriv_copy_bits(&s->pb, gb->buffer + (get_bits_count(gb) >> 3),


Loading…
Cancel
Save