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
96138e8c
Commit
96138e8c
authored
Mar 20, 2014
by
Michael Niedermayer
Committed by
Vittorio Giovara
Mar 30, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isom: only write the size if its non zero in mov_rewrite_dvd_sub_extradata()
Sample-Id: NeroRecodeSample.mp4
parent
9bd4a9f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
isom.c
libavformat/isom.c
+4
-2
No files found.
libavformat/isom.c
View file @
96138e8c
...
...
@@ -446,8 +446,10 @@ static int mov_rewrite_dvd_sub_extradata(AVStream *st)
if
(
st
->
codec
->
extradata_size
!=
64
)
return
0
;
snprintf
(
buf
,
sizeof
(
buf
),
"size: %dx%d
\n
palette: "
,
st
->
codec
->
width
,
st
->
codec
->
height
);
if
(
st
->
codec
->
width
>
0
&&
st
->
codec
->
height
>
0
)
snprintf
(
buf
,
sizeof
(
buf
),
"size: %dx%d
\n
"
,
st
->
codec
->
width
,
st
->
codec
->
height
);
av_strlcat
(
buf
,
"palette: "
,
sizeof
(
buf
));
for
(
i
=
0
;
i
<
16
;
i
++
)
{
uint32_t
yuv
=
AV_RB32
(
src
+
i
*
4
);
...
...
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