diff options
author | Alex Converse <alex.converse@gmail.com> | 2011-09-20 18:40:43 -0700 |
---|---|---|
committer | Alex Converse <alex.converse@gmail.com> | 2011-09-21 09:42:35 -0700 |
commit | 05fc9e40a4e4f808d457512420b887f458d216bc (patch) | |
tree | 201e544314166c84cbccd3e1c2ea3b674a9efd2b /libavformat/swfdec.c | |
parent | ae2e89717b05482a40a881dc99d91076a330a058 (diff) | |
download | ffmpeg-05fc9e40a4e4f808d457512420b887f458d216bc.tar.gz |
swfdec: Add support for sample_rate_code 0 (5512 Hz)
Diffstat (limited to 'libavformat/swfdec.c')
-rw-r--r-- | libavformat/swfdec.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c index 59977a94a6..502647f9a2 100644 --- a/libavformat/swfdec.c +++ b/libavformat/swfdec.c @@ -136,8 +136,9 @@ static int swf_read_packet(AVFormatContext *s, AVPacket *pkt) ast->need_parsing = AVSTREAM_PARSE_FULL; sample_rate_code= (v>>2) & 3; if (!sample_rate_code) - return AVERROR(EIO); - ast->codec->sample_rate = 11025 << (sample_rate_code-1); + ast->codec->sample_rate = 5512; + else + ast->codec->sample_rate = 11025 << (sample_rate_code-1); av_set_pts_info(ast, 64, 1, ast->codec->sample_rate); len -= 4; } else if (tag == TAG_VIDEOFRAME) { |