projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae2e897
)
swfdec: Add support for sample_rate_code 0 (5512 Hz)
author
Alex Converse
<alex.converse@gmail.com>
Wed, 21 Sep 2011 01:40:43 +0000
(18:40 -0700)
committer
Alex Converse
<alex.converse@gmail.com>
Wed, 21 Sep 2011 16:42:35 +0000
(09:42 -0700)
libavformat/swfdec.c
patch
|
blob
|
history
diff --git
a/libavformat/swfdec.c
b/libavformat/swfdec.c
index
59977a9
..
502647f
100644
(file)
--- 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) {