Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
68bc0121
Commit
68bc0121
authored
Dec 09, 2012
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
http/utils: move mime -> demuxer maping from http to utils
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
0af7ccd9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
http.c
libavformat/http.c
+2
-4
utils.c
libavformat/utils.c
+3
-1
No files found.
libavformat/http.c
View file @
68bc0121
...
...
@@ -357,10 +357,8 @@ static int process_line(URLContext *h, char *line, int line_count,
s
->
willclose
=
1
;
}
else
if
(
!
av_strcasecmp
(
tag
,
"Server"
)
&&
!
av_strcasecmp
(
p
,
"AkamaiGHost"
))
{
s
->
is_akamai
=
1
;
}
else
if
(
!
av_strcasecmp
(
tag
,
"Content-Type"
))
{
if
(
!
av_strcasecmp
(
p
,
"audio/aacp"
))
{
av_free
(
s
->
demuxer
);
s
->
demuxer
=
av_strdup
(
"aac"
);
}
}
else
if
(
!
av_strcasecmp
(
tag
,
"Content-Type"
)
&&
p
)
{
av_free
(
s
->
demuxer
);
s
->
demuxer
=
av_strdup
(
p
);
}
}
return
1
;
...
...
libavformat/utils.c
View file @
68bc0121
...
...
@@ -429,7 +429,9 @@ int av_probe_input_buffer(AVIOContext *pb, AVInputFormat **fmt,
}
if
(
!*
fmt
&&
pb
&&
pb
->
av_class
&&
av_opt_get
(
pb
,
"demuxer"
,
AV_OPT_SEARCH_CHILDREN
,
&
demuxer_name
)
>=
0
&&
demuxer_name
)
{
*
fmt
=
av_find_input_format
(
demuxer_name
);
if
(
!
av_strcasecmp
(
demuxer_name
,
"audio/aacp"
))
{
*
fmt
=
av_find_input_format
(
"aac"
);
}
}
for
(
probe_size
=
PROBE_BUF_MIN
;
probe_size
<=
max_probe_size
&&
!*
fmt
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment