OSDN Git Service
(root)
/
coroid
/
ffmpeg_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77553ae
)
check av_find_stream_info return value
author
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 20 Mar 2009 01:07:22 +0000
(
01:07
+0000)
committer
Baptiste Coudurier
<baptiste.coudurier@gmail.com>
Fri, 20 Mar 2009 01:07:22 +0000
(
01:07
+0000)
Originally committed as revision 18060 to svn://svn.ffmpeg.org/ffmpeg/trunk
ffserver.c
patch
|
blob
|
history
diff --git
a/ffserver.c
b/ffserver.c
index
9a2cbc9
..
fd25024
100644
(file)
--- a/
ffserver.c
+++ b/
ffserver.c
@@
-1986,7
+1986,11
@@
static int open_input_stream(HTTPContext *c, const char *info)
}
s->flags |= AVFMT_FLAG_GENPTS;
c->fmt_in = s;
- av_find_stream_info(c->fmt_in);
+ if (av_find_stream_info(c->fmt_in) < 0) {
+ http_log("Could not find stream info '%s'\n", input_filename);
+ av_close_input_file(s);
+ return -1;
+ }
/* open each parser */
for(i=0;i<s->nb_streams;i++)