[SCM] libav/experimental: better error message
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:21:38 UTC 2013
The following commit has been merged in the experimental branch:
commit c351cc7f57fd4e126fc7f8312a70df4c4ae80ad1
Author: Baptiste Coudurier <baptiste.coudurier at gmail.com>
Date: Sun May 25 00:12:53 2008 +0000
better error message
Originally committed as revision 13370 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/ffserver.c b/ffserver.c
index 9bb9f89..b5a48bb 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -1887,7 +1887,7 @@ static int open_input_stream(HTTPContext *c, const char *info)
char buf[128];
char input_filename[1024];
AVFormatContext *s;
- int buf_size, i;
+ int buf_size, i, ret;
int64_t stream_pos;
/* find file name */
@@ -1929,9 +1929,9 @@ static int open_input_stream(HTTPContext *c, const char *info)
#endif
/* open stream */
- if (av_open_input_file(&s, input_filename, c->stream->ifmt,
- buf_size, c->stream->ap_in) < 0) {
- http_log("%s not found", input_filename);
+ if ((ret = av_open_input_file(&s, input_filename, c->stream->ifmt,
+ buf_size, c->stream->ap_in)) < 0) {
+ http_log("could not open %s: %d\n", input_filename, ret);
return -1;
}
s->flags |= AVFMT_FLAG_GENPTS;
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list