WMADEC: fix ticket125
ffmpeg | branch: master | Michael Niedermayer <michaelni@gmx.at> | Wed Apr 27 17:12:14 2011 +0200| [f08d171caa6a8eab00c1b0ac87bb3a79d98727e5] | committer: Michael Niedermayer WMADEC: fix ticket125 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f08d171caa6a8eab00...
libavcodec/wmadec.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/libavcodec/wmadec.c b/libavcodec/wmadec.c index 3601e47..1d71bdb 100644 --- a/libavcodec/wmadec.c +++ b/libavcodec/wmadec.c @@ -103,7 +103,7 @@ static int wma_decode_init(AVCodecContext * avctx) s->use_variable_block_len = flags2 & 0x0004; if(avctx->codec->id == CODEC_ID_WMAV2 && avctx->extradata_size >= 8){ - if(!AV_RL16(extradata+6) && s->use_variable_block_len){ + if(AV_RL16(extradata+4)==0xd && s->use_variable_block_len){ av_log(avctx, AV_LOG_WARNING, "Disabling use_variable_block_len, if this fails contact the ffmpeg developers and send us the file\n"); s->use_variable_block_len= 0; // this fixes issue1503 }
On 4/27/11, Michael Niedermayer <git@videolan.org> wrote:
ffmpeg | branch: master | Michael Niedermayer <michaelni@gmx.at> | Wed Apr 27 17:12:14 2011 +0200| [f08d171caa6a8eab00c1b0ac87bb3a79d98727e5] | committer: Michael Niedermayer
WMADEC: fix ticket125
Once again, write more descriptive messages. Be sure to answer the 2 question : What do you fix, and how do you fix it. It requires a lot more effort to find out what ticket125 says. Don't forget that we referred to bugs with roundup issues, and we kind of lost the whole roundup database. About "How" - in this case I can see that there is changed condition, but I have no idea what the old one was supposed to do and I have no idea what the new one is checking. BTW, I like the WMADEC: starting label. I'm already using something similar in my work repo.
On Thu, Apr 28, 2011 at 01:55:31PM +0300, Ivan Kalvachev wrote:
On 4/27/11, Michael Niedermayer <git@videolan.org> wrote:
ffmpeg | branch: master | Michael Niedermayer <michaelni@gmx.at> | Wed Apr 27 17:12:14 2011 +0200| [f08d171caa6a8eab00c1b0ac87bb3a79d98727e5] | committer: Michael Niedermayer
WMADEC: fix ticket125
Once again, write more descriptive messages.
theres not all that much i can say here, its trying to fix wma decoder issues by trial and error. (make change that works with all my samples and wait to see is users report an issue)
Be sure to answer the 2 question : What do you fix, and how do you fix it.
what: decoder failure how: the one line change shows as much as i know.
It requires a lot more effort to find out what ticket125 says. Don't forget that we referred to bugs with roundup issues, and we kind of lost the whole roundup database.
About "How" - in this case I can see that there is changed condition, but I have no idea what the old one was supposed to do and I have no idea what the new one is checking.
I dont know either beyond "it works" i could use a disassembler but its too much work for this or i could ask microsoft but i dont think they will tell me ;) [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB The worst form of inequality is to try to make unequal things equal. -- Aristotle
participants (3)
-
git@videolan.org -
Ivan Kalvachev -
Michael Niedermayer