[Ffmpeg-cvslog] r7409 - trunk/libavformat/swf.c

bcoudurier subversion
Fri Jan 5 15:23:13 CET 2007


Author: bcoudurier
Date: Fri Jan  5 15:23:13 2007
New Revision: 7409

Modified:
   trunk/libavformat/swf.c

Log:
simplify

Modified: trunk/libavformat/swf.c
==============================================================================
--- trunk/libavformat/swf.c	(original)
+++ trunk/libavformat/swf.c	Fri Jan  5 15:23:13 2007
@@ -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:




More information about the ffmpeg-cvslog mailing list