Commit ecd281c6 authored by bcoudurier's avatar bcoudurier

simplify

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@7409 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94e9ea8a
...@@ -831,10 +831,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -831,10 +831,7 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
return -ENOMEM; return -ENOMEM;
av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */ av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */
if (v & 0x01) ast->codec->channels = 1 + (v&1);
ast->codec->channels = 2;
else
ast->codec->channels = 1;
switch((v>> 2) & 0x03) { switch((v>> 2) & 0x03) {
case 1: case 1:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment