Mercurial > libavformat.hg
diff swf.c @ 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 | 0899bfe4105c |
| children | 84aa565e7da8 |
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;
