diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-25 20:05:14 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-25 20:05:14 +0000 |
commit | 21e3c26ca2a9807383547167f181cae0903650da (patch) | |
tree | cad1aafcb2e581a7a748c3d08ac36cd1b10e6ba8 | |
parent | 4cbed916cf61f61c11bca95124b9bfb8738e6e99 (diff) | |
download | ffmpeg-21e3c26ca2a9807383547167f181cae0903650da.tar.gz |
fix mp3 in swf decoding
Originally committed as revision 6792 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/swf.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index 848ca17a1a..bc3b2f9f6c 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -854,6 +854,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) } 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 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) 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; } |