diff options
author | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-22 23:23:55 +0000 |
---|---|---|
committer | Aurelien Jacobs <aurel@gnuage.org> | 2006-10-22 23:23:55 +0000 |
commit | fa73604f61e9f067feb24078128a4a3f915d628c (patch) | |
tree | e7524e0488b525304f24d21e9fdad4252373e50d | |
parent | 9e2424ce60b5a5e39478593106f7199e72b71f2d (diff) | |
download | ffmpeg-fa73604f61e9f067feb24078128a4a3f915d628c.tar.gz |
don't use ast before checking it's not NULL
Originally committed as revision 6771 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/swf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/swf.c b/libavformat/swf.c index bd657d0d9f..848ca17a1a 100644 --- a/libavformat/swf.c +++ b/libavformat/swf.c @@ -829,9 +829,9 @@ static int swf_read_header(AVFormatContext *s, AVFormatParameters *ap) get_le16(pb); } ast = av_new_stream(s, 1); - av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */ if (!ast) return -ENOMEM; + av_set_pts_info(ast, 24, 1, 1000); /* 24 bit pts in ms */ if (v & 0x01) ast->codec->channels = 2; |