提交 e943369f 编写于 作者: B Baptiste Coudurier

simplify

Originally committed as revision 7409 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 17230c9d
......@@ -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:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册