comparison utils.c @ 198:64dbc0b60dbe libavformat

win32 compile fix
author bellard
date Sun, 24 Aug 2003 13:59:05 +0000
parents b8a3fb61d39a
children 66a05c4f8350
comparison
equal deleted inserted replaced
197:b8a3fb61d39a 198:64dbc0b60dbe
334 } 334 }
335 335
336 /* do not open file if the format does not need it. XXX: specific 336 /* do not open file if the format does not need it. XXX: specific
337 hack needed to handle RTSP/TCP */ 337 hack needed to handle RTSP/TCP */
338 must_open_file = 1; 338 must_open_file = 1;
339 if ((fmt && (fmt->flags & AVFMT_NOFILE)) || 339 if ((fmt && (fmt->flags & AVFMT_NOFILE))
340 (fmt == &rtp_demux && !strcmp(filename, "null"))) { 340 #ifdef CONFIG_NETWORK
341 || (fmt == &rtp_demux && !strcmp(filename, "null"))
342 #endif
343 ) {
341 must_open_file = 0; 344 must_open_file = 0;
342 } 345 }
343 346
344 if (!fmt || must_open_file) { 347 if (!fmt || must_open_file) {
345 /* if no file needed do not try to open one */ 348 /* if no file needed do not try to open one */
982 p = p1; 985 p = p1;
983 } 986 }
984 s->packet_buffer = NULL; 987 s->packet_buffer = NULL;
985 } 988 }
986 must_open_file = 1; 989 must_open_file = 1;
987 if ((s->iformat->flags & AVFMT_NOFILE) || 990 if ((s->iformat->flags & AVFMT_NOFILE)
988 (s->iformat == &rtp_demux && !strcmp(s->filename, "null"))) { 991 #ifdef CONFIG_NETWORK
992 || (s->iformat == &rtp_demux && !strcmp(s->filename, "null"))
993 #endif
994 ) {
989 must_open_file = 0; 995 must_open_file = 0;
990 } 996 }
991 if (must_open_file) { 997 if (must_open_file) {
992 url_fclose(&s->pb); 998 url_fclose(&s->pb);
993 } 999 }