Commit 359f446c authored by bcoudurier's avatar bcoudurier

better error message

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@13370 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 069ead1c
...@@ -1887,7 +1887,7 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -1887,7 +1887,7 @@ static int open_input_stream(HTTPContext *c, const char *info)
char buf[128]; char buf[128];
char input_filename[1024]; char input_filename[1024];
AVFormatContext *s; AVFormatContext *s;
int buf_size, i; int buf_size, i, ret;
int64_t stream_pos; int64_t stream_pos;
/* find file name */ /* find file name */
...@@ -1929,9 +1929,9 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -1929,9 +1929,9 @@ static int open_input_stream(HTTPContext *c, const char *info)
#endif #endif
/* open stream */ /* open stream */
if (av_open_input_file(&s, input_filename, c->stream->ifmt, if ((ret = av_open_input_file(&s, input_filename, c->stream->ifmt,
buf_size, c->stream->ap_in) < 0) { buf_size, c->stream->ap_in)) < 0) {
http_log("%s not found", input_filename); http_log("could not open %s: %d\n", input_filename, ret);
return -1; return -1;
} }
s->flags |= AVFMT_FLAG_GENPTS; s->flags |= AVFMT_FLAG_GENPTS;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment