comparison swf.c @ 1620:11a1f416d393 libavformat

simplify
author bcoudurier
date Fri, 05 Jan 2007 14:23:13 +0000
parents b95cdbfc2d16
children bdb50e314f29
comparison
equal deleted inserted replaced
1619:b95cdbfc2d16 1620:11a1f416d393
829 ast = av_new_stream(s, 1); 829 ast = av_new_stream(s, 1);
830 if (!ast) 830 if (!ast)
831 return -ENOMEM; 831 return -ENOMEM;
832 av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */ 832 av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */
833 833
834 if (v & 0x01) 834 ast->codec->channels = 1 + (v&1);
835 ast->codec->channels = 2;
836 else
837 ast->codec->channels = 1;
838 835
839 switch((v>> 2) & 0x03) { 836 switch((v>> 2) & 0x03) {
840 case 1: 837 case 1:
841 ast->codec->sample_rate = 11025; 838 ast->codec->sample_rate = 11025;
842 break; 839 break;