Mercurial > libavformat.hg
changeset 1412:cefc8e8de267 libavformat
don't use ast before checking it's not NULL
author | aurel |
---|---|
date | Sun, 22 Oct 2006 23:23:55 +0000 |
parents | 822f6b8a9b5e |
children | f35535267409 |
files | swf.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/swf.c Sun Oct 22 23:19:42 2006 +0000 +++ b/swf.c Sun Oct 22 23:23:55 2006 +0000 @@ -829,9 +829,9 @@ 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;