summaryrefslogtreecommitdiff
path: root/libavformat/swf.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-05 14:23:13 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2007-01-05 14:23:13 +0000
commite943369fd4b7a6f7fd1320145fb6e373d9119955 (patch)
tree913adbdedc52d7e8c9c9662563f54b7a8814da0f /libavformat/swf.c
parent17230c9d4d005a1d4db0b3c278649f0830fdf0be (diff)
simplify
Originally committed as revision 7409 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/swf.c')
-rw-r--r--libavformat/swf.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c
index caadc9d859..b4f6fd1fcb 100644
--- 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: