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:
17230c9
)
simplify
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 5 Jan 2007 14:23:13 +0000
(14:23 +0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 5 Jan 2007 14:23:13 +0000
(14:23 +0000)
Originally committed as revision 7409 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/swf.c
patch
|
blob
|
history
diff --git
a/libavformat/swf.c
b/libavformat/swf.c
index
caadc9d
..
b4f6fd1
100644
(file)
--- a/
libavformat/swf.c
+++ b/
libavformat/swf.c
@@
-831,10
+831,7
@@
static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
return -ENOMEM;
av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */
- if (v & 0x01)
- ast->codec->channels = 2;
- else
- ast->codec->channels = 1;
+ ast->codec->channels = 1 + (v&1);
switch((v>> 2) & 0x03) {
case 1: