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
3b6e9cd7
Commit
3b6e9cd7
authored
Sep 04, 2012
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/dvdsubdec: parse the size from the extradata.
parent
d83ff76c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dvdsubdec.c
libavcodec/dvdsubdec.c
+6
-0
No files found.
libavcodec/dvdsubdec.c
View file @
3b6e9cd7
...
...
@@ -22,6 +22,7 @@
#include "get_bits.h"
#include "dsputil.h"
#include "libavutil/colorspace.h"
#include "libavutil/imgutils.h"
//#define DEBUG
...
...
@@ -540,6 +541,11 @@ static int dvdsub_init(AVCodecContext *avctx)
while
(
*
p
==
','
||
isspace
(
*
p
))
p
++
;
}
}
else
if
(
strncmp
(
"size:"
,
data
,
5
)
==
0
)
{
int
w
,
h
;
if
(
sscanf
(
data
+
5
,
"%dx%d"
,
&
w
,
&
h
)
==
2
&&
av_image_check_size
(
w
,
h
,
0
,
avctx
)
>=
0
)
avcodec_set_dimensions
(
avctx
,
w
,
h
);
}
data
+=
pos
;
...
...
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