don't use ast before checking it's not NULL
Originally committed as revision 6771 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9e2424ce60
commit
fa73604f61
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user