Mercurial > libavformat.hg
changeset 175:b6fa8a3b78c6 libavformat
fix fmt == NULL case
author | bellard |
---|---|
date | Wed, 16 Jul 2003 07:50:17 +0000 |
parents | 7d56e9f83fdb |
children | dbe87175dd99 |
files | utils.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Tue Jul 15 22:15:37 2003 +0000 +++ b/utils.c Wed Jul 16 07:50:17 2003 +0000 @@ -334,7 +334,7 @@ /* do not open file if the format does not need it. XXX: specific hack needed to handle RTSP/TCP */ must_open_file = 1; - if ((fmt->flags & AVFMT_NOFILE) || + if ((fmt && (fmt->flags & AVFMT_NOFILE)) || (fmt == &rtp_demux && !strcmp(filename, "null"))) { must_open_file = 0; }