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
d01d6065
Commit
d01d6065
authored
Jan 24, 2020
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dnxhddec: properly set colorspace
parent
de1b2aa7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
dnxhddec.c
libavcodec/dnxhddec.c
+8
-1
No files found.
libavcodec/dnxhddec.c
View file @
d01d6065
...
@@ -235,7 +235,14 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
...
@@ -235,7 +235,14 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
av_log
(
ctx
->
avctx
,
AV_LOG_WARNING
,
av_log
(
ctx
->
avctx
,
AV_LOG_WARNING
,
"Adaptive MB interlace flag in an unsupported profile.
\n
"
);
"Adaptive MB interlace flag in an unsupported profile.
\n
"
);
ctx
->
act
=
buf
[
0x2C
]
&
7
;
switch
((
buf
[
0x2C
]
>>
1
)
&
3
)
{
case
0
:
frame
->
colorspace
=
AVCOL_SPC_BT709
;
break
;
case
1
:
frame
->
colorspace
=
AVCOL_SPC_BT2020_NCL
;
break
;
case
2
:
frame
->
colorspace
=
AVCOL_SPC_BT2020_CL
;
break
;
case
3
:
frame
->
colorspace
=
AVCOL_SPC_UNSPECIFIED
;
break
;
}
ctx
->
act
=
buf
[
0x2C
]
&
1
;
if
(
ctx
->
act
&&
ctx
->
cid_table
->
cid
!=
1256
&&
ctx
->
cid_table
->
cid
!=
1270
)
if
(
ctx
->
act
&&
ctx
->
cid_table
->
cid
!=
1256
&&
ctx
->
cid_table
->
cid
!=
1270
)
av_log
(
ctx
->
avctx
,
AV_LOG_WARNING
,
av_log
(
ctx
->
avctx
,
AV_LOG_WARNING
,
"Adaptive color transform in an unsupported profile.
\n
"
);
"Adaptive color transform in an unsupported profile.
\n
"
);
...
...
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