Mercurial > libavformat.hg
diff utils.c @ 175:b6fa8a3b78c6 libavformat
fix fmt == NULL case
| author | bellard |
|---|---|
| date | Wed, 16 Jul 2003 07:50:17 +0000 |
| parents | 9a0ab557b159 |
| children | 0316a506aeb0 |
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; }
