Commit c960e67a authored by Diego Biurrun's avatar Diego Biurrun

Replace deprecated av_find_stream_info() by avformat_find_stream_info().

parent 5f677aac
...@@ -277,7 +277,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename) ...@@ -277,7 +277,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
/* fill the streams in the format context */ /* fill the streams in the format context */
if ((err = av_find_stream_info(fmt_ctx)) < 0) { if ((err = avformat_find_stream_info(fmt_ctx, NULL)) < 0) {
print_error(filename, err); print_error(filename, err);
return err; return err;
} }
......
...@@ -2162,7 +2162,7 @@ static int open_input_stream(HTTPContext *c, const char *info) ...@@ -2162,7 +2162,7 @@ static int open_input_stream(HTTPContext *c, const char *info)
} }
s->flags |= AVFMT_FLAG_GENPTS; s->flags |= AVFMT_FLAG_GENPTS;
c->fmt_in = s; c->fmt_in = s;
if (strcmp(s->iformat->name, "ffm") && av_find_stream_info(c->fmt_in) < 0) { if (strcmp(s->iformat->name, "ffm") && avformat_find_stream_info(c->fmt_in, NULL) < 0) {
http_log("Could not find stream info '%s'\n", input_filename); http_log("Could not find stream info '%s'\n", input_filename);
av_close_input_file(s); av_close_input_file(s);
return -1; return -1;
...@@ -3621,7 +3621,7 @@ static void build_file_streams(void) ...@@ -3621,7 +3621,7 @@ static void build_file_streams(void)
} else { } else {
/* find all the AVStreams inside and reference them in /* find all the AVStreams inside and reference them in
'stream' */ 'stream' */
if (av_find_stream_info(infile) < 0) { if (avformat_find_stream_info(infile, NULL) < 0) {
http_log("Could not find codec parameters from '%s'\n", http_log("Could not find codec parameters from '%s'\n",
stream->feed_filename); stream->feed_filename);
av_close_input_file(infile); av_close_input_file(infile);
......
...@@ -86,7 +86,7 @@ int main(int argc, char **argv) ...@@ -86,7 +86,7 @@ int main(int argc, char **argv)
exit(1); exit(1);
} }
ret = av_find_stream_info(ic); ret = avformat_find_stream_info(ic, NULL);
if (ret < 0) { if (ret < 0) {
fprintf(stderr, "%s: could not find codec parameters\n", filename); fprintf(stderr, "%s: could not find codec parameters\n", filename);
exit(1); exit(1);
......
...@@ -89,9 +89,9 @@ int main(int argc, char **argv) ...@@ -89,9 +89,9 @@ int main(int argc, char **argv)
return 1; return 1;
} }
err = av_find_stream_info(fctx); err = avformat_find_stream_info(fctx, NULL);
if (err < 0) { if (err < 0) {
fprintf(stderr, "av_find_stream_info: error %d\n", err); fprintf(stderr, "avformat_find_stream_info: error %d\n", err);
return 1; return 1;
} }
......
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