Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
fdb5e029
Commit
fdb5e029
authored
Jun 14, 2011
by
Aurelien Jacobs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
matroskadec: properly decode color space in an endian neutral way
parent
5fec3a25
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
matroskadec.c
libavformat/matroskadec.c
+4
-3
No files found.
libavformat/matroskadec.c
View file @
fdb5e029
...
...
@@ -112,7 +112,7 @@ typedef struct {
uint64_t
display_height
;
uint64_t
pixel_width
;
uint64_t
pixel_height
;
uint64_t
fourcc
;
EbmlBin
color_space
;
uint64_t
stereo_mode
;
}
MatroskaTrackVideo
;
...
...
@@ -302,7 +302,7 @@ static EbmlSyntax matroska_track_video[] = {
{
MATROSKA_ID_VIDEODISPLAYHEIGHT
,
EBML_UINT
,
0
,
offsetof
(
MatroskaTrackVideo
,
display_height
)
},
{
MATROSKA_ID_VIDEOPIXELWIDTH
,
EBML_UINT
,
0
,
offsetof
(
MatroskaTrackVideo
,
pixel_width
)
},
{
MATROSKA_ID_VIDEOPIXELHEIGHT
,
EBML_UINT
,
0
,
offsetof
(
MatroskaTrackVideo
,
pixel_height
)
},
{
MATROSKA_ID_VIDEOCOLORSPACE
,
EBML_
UINT
,
0
,
offsetof
(
MatroskaTrackVideo
,
fourcc
)
},
{
MATROSKA_ID_VIDEOCOLORSPACE
,
EBML_
BIN
,
0
,
offsetof
(
MatroskaTrackVideo
,
color_space
)
},
{
MATROSKA_ID_VIDEOSTEREOMODE
,
EBML_UINT
,
0
,
offsetof
(
MatroskaTrackVideo
,
stereo_mode
)
},
{
MATROSKA_ID_VIDEOPIXELCROPB
,
EBML_NONE
},
{
MATROSKA_ID_VIDEOPIXELCROPT
,
EBML_NONE
},
...
...
@@ -1303,7 +1303,8 @@ static int matroska_read_header(AVFormatContext *s, AVFormatParameters *ap)
track
->
video
.
display_width
=
track
->
video
.
pixel_width
;
if
(
!
track
->
video
.
display_height
)
track
->
video
.
display_height
=
track
->
video
.
pixel_height
;
fourcc
=
track
->
video
.
fourcc
;
if
(
track
->
video
.
color_space
.
size
==
4
)
fourcc
=
AV_RL32
(
track
->
video
.
color_space
.
data
);
}
else
if
(
track
->
type
==
MATROSKA_TRACK_TYPE_AUDIO
)
{
if
(
!
track
->
audio
.
out_samplerate
)
track
->
audio
.
out_samplerate
=
track
->
audio
.
samplerate
;
...
...
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