Mercurial > libavformat.hg
comparison swf.c @ 1417:84aa565e7da8 libavformat
fix mp3 in swf decoding
author | aurel |
---|---|
date | Wed, 25 Oct 2006 20:05:14 +0000 |
parents | cefc8e8de267 |
children | f57c7614ff98 |
comparison
equal
deleted
inserted
replaced
1416:3e109676d788 | 1417:84aa565e7da8 |
---|---|
852 av_free(ast); | 852 av_free(ast); |
853 return AVERROR_IO; | 853 return AVERROR_IO; |
854 } | 854 } |
855 ast->codec->codec_type = CODEC_TYPE_AUDIO; | 855 ast->codec->codec_type = CODEC_TYPE_AUDIO; |
856 ast->codec->codec_id = CODEC_ID_MP3; | 856 ast->codec->codec_id = CODEC_ID_MP3; |
857 ast->need_parsing = 1; | |
857 } | 858 } |
858 } else { | 859 } else { |
859 url_fskip(pb, len); | 860 url_fskip(pb, len); |
860 } | 861 } |
861 } | 862 } |
894 url_fskip(pb, len); | 895 url_fskip(pb, len); |
895 } else if (tag == TAG_STREAMBLOCK) { | 896 } else if (tag == TAG_STREAMBLOCK) { |
896 for( i=0; i<s->nb_streams; i++ ) { | 897 for( i=0; i<s->nb_streams; i++ ) { |
897 st = s->streams[i]; | 898 st = s->streams[i]; |
898 if (st->id == 1) { | 899 if (st->id == 1) { |
899 av_get_packet(pb, pkt, len); | 900 url_fskip(pb, 4); |
901 av_get_packet(pb, pkt, len-4); | |
900 pkt->stream_index = st->index; | 902 pkt->stream_index = st->index; |
901 return pkt->size; | 903 return pkt->size; |
902 } | 904 } |
903 } | 905 } |
904 url_fskip(pb, len); | 906 url_fskip(pb, len); |