Mercurial > libavformat.hg
changeset 1417:84aa565e7da8 libavformat
fix mp3 in swf decoding
author | aurel |
---|---|
date | Wed, 25 Oct 2006 20:05:14 +0000 |
parents | 3e109676d788 |
children | 9720274e2621 |
files | swf.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/swf.c Mon Oct 23 13:17:46 2006 +0000 +++ b/swf.c Wed Oct 25 20:05:14 2006 +0000 @@ -854,6 +854,7 @@ } ast->codec->codec_type = CODEC_TYPE_AUDIO; ast->codec->codec_id = CODEC_ID_MP3; + ast->need_parsing = 1; } } else { url_fskip(pb, len); @@ -896,7 +897,8 @@ for( i=0; i<s->nb_streams; i++ ) { st = s->streams[i]; if (st->id == 1) { - av_get_packet(pb, pkt, len); + url_fskip(pb, 4); + av_get_packet(pb, pkt, len-4); pkt->stream_index = st->index; return pkt->size; }