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
ad83cfec
Commit
ad83cfec
authored
Oct 23, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpeg: Forward whitelists to the mpegps demuxer
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
ad5f861b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
mpeg.c
libavformat/mpeg.c
+8
-0
No files found.
libavformat/mpeg.c
View file @
ad83cfec
...
@@ -695,6 +695,14 @@ static int vobsub_read_header(AVFormatContext *s)
...
@@ -695,6 +695,14 @@ static int vobsub_read_header(AVFormatContext *s)
}
}
memcpy
(
ext
,
!
strncmp
(
ext
,
"IDX"
,
3
)
?
"SUB"
:
"sub"
,
3
);
memcpy
(
ext
,
!
strncmp
(
ext
,
"IDX"
,
3
)
?
"SUB"
:
"sub"
,
3
);
av_log
(
s
,
AV_LOG_VERBOSE
,
"IDX/SUB: %s -> %s
\n
"
,
s
->
filename
,
sub_name
);
av_log
(
s
,
AV_LOG_VERBOSE
,
"IDX/SUB: %s -> %s
\n
"
,
s
->
filename
,
sub_name
);
vobsub
->
sub_ctx
=
avformat_alloc_context
();
if
(
!
vobsub
->
sub_ctx
)
return
AVERROR
(
ENOMEM
);
vobsub
->
sub_ctx
->
codec_whitelist
=
av_strdup
(
s
->
codec_whitelist
);
vobsub
->
sub_ctx
->
format_whitelist
=
av_strdup
(
s
->
format_whitelist
);
ret
=
avformat_open_input
(
&
vobsub
->
sub_ctx
,
sub_name
,
&
ff_mpegps_demuxer
,
NULL
);
ret
=
avformat_open_input
(
&
vobsub
->
sub_ctx
,
sub_name
,
&
ff_mpegps_demuxer
,
NULL
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
av_log
(
s
,
AV_LOG_ERROR
,
"Unable to open %s as MPEG subtitles
\n
"
,
sub_name
);
av_log
(
s
,
AV_LOG_ERROR
,
"Unable to open %s as MPEG subtitles
\n
"
,
sub_name
);
...
...
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