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
f3147917
Commit
f3147917
authored
Feb 17, 2013
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/subtitles: error out in case of bitmap subtitles.
parent
fe150a48
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
vf_subtitles.c
libavfilter/vf_subtitles.c
+7
-0
No files found.
libavfilter/vf_subtitles.c
View file @
f3147917
...
...
@@ -267,6 +267,7 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args)
AVFormatContext
*
fmt
=
NULL
;
AVCodecContext
*
dec_ctx
=
NULL
;
AVCodec
*
dec
=
NULL
;
AVCodecDescriptor
*
dec_desc
;
AVStream
*
st
;
AVPacket
pkt
;
AssContext
*
ass
=
ctx
->
priv
;
...
...
@@ -309,6 +310,12 @@ static av_cold int init_subtitles(AVFilterContext *ctx, const char *args)
avcodec_get_name
(
dec_ctx
->
codec_id
));
return
AVERROR
(
EINVAL
);
}
dec_desc
=
avcodec_descriptor_get
(
dec_ctx
->
codec_id
);
if
(
dec_desc
&&
(
dec_desc
->
props
&
AV_CODEC_PROP_BITMAP_SUB
))
{
av_log
(
ctx
,
AV_LOG_ERROR
,
"Only text based subtitles are currently supported
\n
"
);
return
AVERROR_PATCHWELCOME
;
}
if
(
ass
->
charenc
)
av_dict_set
(
&
codec_opts
,
"sub_charenc"
,
ass
->
charenc
,
0
);
ret
=
avcodec_open2
(
dec_ctx
,
dec
,
&
codec_opts
);
...
...
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