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
a90466f7
Commit
a90466f7
authored
Apr 10, 2004
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
prefix global
Originally committed as revision 2994 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
44f110f5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
mov.c
libavformat/mov.c
+3
-3
qtpalette.h
libavformat/qtpalette.h
+3
-3
No files found.
libavformat/mov.c
View file @
a90466f7
...
...
@@ -903,11 +903,11 @@ static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
/* if flag bit 3 is set, use the default palette */
color_count
=
1
<<
color_depth
;
if
(
color_depth
==
2
)
color_table
=
qt_default_palette_4
;
color_table
=
ff_
qt_default_palette_4
;
else
if
(
color_depth
==
4
)
color_table
=
qt_default_palette_16
;
color_table
=
ff_
qt_default_palette_16
;
else
color_table
=
qt_default_palette_256
;
color_table
=
ff_
qt_default_palette_256
;
for
(
j
=
0
;
j
<
color_count
;
j
++
)
{
r
=
color_table
[
j
*
4
+
0
];
...
...
libavformat/qtpalette.h
View file @
a90466f7
...
...
@@ -7,14 +7,14 @@
#ifndef QTPALETTE_H
#define QTPALETTE_H
unsigned
char
qt_default_palette_4
[
4
*
4
]
=
{
unsigned
char
ff_
qt_default_palette_4
[
4
*
4
]
=
{
0x93
,
0x65
,
0x5E
,
0x00
,
0xFF
,
0xFF
,
0xFF
,
0x00
,
0xDF
,
0xD0
,
0xAB
,
0x00
,
0x00
,
0x00
,
0x00
,
0x00
};
unsigned
char
qt_default_palette_16
[
16
*
4
]
=
{
unsigned
char
ff_
qt_default_palette_16
[
16
*
4
]
=
{
0xFF
,
0xFB
,
0xFF
,
0x00
,
0xEF
,
0xD9
,
0xBB
,
0x00
,
0xE8
,
0xC9
,
0xB1
,
0x00
,
...
...
@@ -33,7 +33,7 @@ unsigned char qt_default_palette_16[16 * 4] = {
0x00
,
0x00
,
0x00
,
0x00
};
unsigned
char
qt_default_palette_256
[
256
*
4
]
=
{
unsigned
char
ff_
qt_default_palette_256
[
256
*
4
]
=
{
/* 0, 0x00 */
0xFF
,
0xFF
,
0xFF
,
0x00
,
/* 1, 0x01 */
0xFF
,
0xFF
,
0xCC
,
0x00
,
/* 2, 0x02 */
0xFF
,
0xFF
,
0x99
,
0x00
,
...
...
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