projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e2424c
)
don't use ast before checking it's not NULL
author
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Oct 2006 23:23:55 +0000
(23:23 +0000)
committer
Aurelien Jacobs
<aurel@gnuage.org>
Sun, 22 Oct 2006 23:23:55 +0000
(23:23 +0000)
Originally committed as revision 6771 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/swf.c
patch
|
blob
|
history
diff --git
a/libavformat/swf.c
b/libavformat/swf.c
index
bd657d0
..
848ca17
100644
(file)
--- 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;