History

Replace deprecated av_find_stream_info() by avformat_find_stream_info().

Diego Biurrun committed 15 years ago

Commit c960e671 parent 5f677aa4 files · +6 −6Browse files

Showing the changes to avserver.c (1 of 4 files). Show all

Unified · Split

avserver.c+2−2
@@ -2162,7 +2162,7 @@ static int open_input_stream(HTTPContext *c, const char *info) · 2161 unmodified lines
2162 }2162 }
2163 s->flags |= AVFMT_FLAG_GENPTS;2163 s->flags |= AVFMT_FLAG_GENPTS;
2164 c->fmt_in = s;2164 c->fmt_in = s;
2165 if (strcmp(s->iformat->name, "ffm") && av_find_stream_info(c->fmt_in) < 0) {2165 if (strcmp(s->iformat->name, "ffm") && avformat_find_stream_info(c->fmt_in, NULL) < 0) {
2166 http_log("Could not find stream info '%s'\n", input_filename);2166 http_log("Could not find stream info '%s'\n", input_filename);
2167 av_close_input_file(s);2167 av_close_input_file(s);
2168 return -1;2168 return -1;
@@ -3621,7 +3621,7 @@ static void build_file_streams(void) · 1452 unmodified lines
3621 } else {3621 } else {
3622 /* find all the AVStreams inside and reference them in3622 /* find all the AVStreams inside and reference them in
3623 'stream' */3623 'stream' */
3624 if (av_find_stream_info(infile) < 0) {3624 if (avformat_find_stream_info(infile, NULL) < 0) {
3625 http_log("Could not find codec parameters from '%s'\n",3625 http_log("Could not find codec parameters from '%s'\n",
3626 stream->feed_filename);3626 stream->feed_filename);
3627 av_close_input_file(infile);3627 av_close_input_file(infile);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t