Commit f0f2cb4a authored by aurel's avatar aurel

don't use ast before checking it's not NULL

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6771 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 0dd9f2ec
...@@ -829,9 +829,9 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -829,9 +829,9 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap)
get_le16(pb); get_le16(pb);
} }
ast = av_new_stream(s, 1); ast = av_new_stream(s, 1);
av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */
if (!ast) if (!ast)
return -ENOMEM; return -ENOMEM;
av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */
if (v & 0x01) if (v & 0x01)
ast->codec->channels = 2; ast->codec->channels = 2;
......
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