changeset 1620:11a1f416d393 libavformat

simplify
author bcoudurier
date Fri, 05 Jan 2007 14:23:13 +0000
parents b95cdbfc2d16
children 2f3091d284f8
files swf.c
diffstat 1 files changed, 1 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/swf.c	Fri Jan 05 14:17:41 2007 +0000
+++ b/swf.c	Fri Jan 05 14:23:13 2007 +0000
@@ -831,10 +831,7 @@
                     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: