diff options
author | Michael Niedermayer <[email protected]> | 2011-06-21 21:13:49 +0200 |
---|---|---|
committer | Michael Niedermayer <[email protected]> | 2011-06-21 21:14:36 +0200 |
commit | df3850db4958c44e8e4d5aa0fece71c03a51372b (patch) | |
tree | dc747b463c44fd26356f0228f88cb387f31c1820 /libavcodec/wmadec.c | |
parent | 082b4f8348c6d8fc110969692c2a2ccf81f4e20c (diff) | |
parent | 250cebeb3b348c3da71f9972eb500d6005dc01f1 (diff) |
Merge branch 'master' into oldabi
* master:
release_notes: document not fully understood mingw-sdl issue
release_notes: some updates
presets: forgotten libvpx presets
release_notes: fix version
release_notes: mention more codecs Signed-off-by: Michael Niedermayer <[email protected]>
release_notes: there will be 2 releases each for one ABI/API.
release_notes: suggest git log instead of the poorly maintained APIChanges
release_notes: we do support releases
build system: disable memalign on haiku, its not reliable there.
ffprobe: remove duplicate avformat_alloc_context()
Fix segmentation fault in ffprobe
wma: fix infinite loop
Fix H.264 4:4:4 lossless decoding.
Merged-by: Michael Niedermayer <[email protected]>
Diffstat (limited to 'libavcodec/wmadec.c')
-rw-r--r-- | libavcodec/wmadec.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 840025d493..9eaf230b01 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -828,7 +828,8 @@ static int wma_decode_superframe(AVCodecContext *avctx, } if (buf_size < s->block_align) return AVERROR(EINVAL); - buf_size = s->block_align; + if(s->block_align) + buf_size = s->block_align; samples = data; @@ -911,9 +912,8 @@ static int wma_decode_superframe(AVCodecContext *avctx, } //av_log(NULL, AV_LOG_ERROR, "%d %d %d %d outbytes:%d eaten:%d\n", s->frame_len_bits, s->block_len_bits, s->frame_len, s->block_len, (int8_t *)samples - (int8_t *)data, s->block_align); - *data_size = (int8_t *)samples - (int8_t *)data; - return s->block_align; + return buf_size; fail: /* when error, we reset the bit reservoir */ s->last_superframe_len = 0; |