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
237bbf66
Commit
237bbf66
authored
Sep 06, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dnxhddec: ask for samples with alpha
parent
7bb90a94
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
dnxhddec.c
libavcodec/dnxhddec.c
+6
-0
No files found.
libavcodec/dnxhddec.c
View file @
237bbf66
...
...
@@ -67,6 +67,8 @@ typedef struct DNXHDContext {
const
CIDEntry
*
cid_table
;
int
bit_depth
;
// 8, 10, 12 or 0 if not initialized at all.
int
is_444
;
int
alpha
;
int
lla
;
int
mbaff
;
int
act
;
int
(
*
decode_dct_block
)(
const
struct
DNXHDContext
*
ctx
,
...
...
@@ -205,6 +207,10 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
ctx
->
cur_field
=
0
;
}
ctx
->
mbaff
=
(
buf
[
0x6
]
>>
5
)
&
1
;
ctx
->
alpha
=
buf
[
0x7
]
&
1
;
ctx
->
lla
=
(
buf
[
0x7
]
>>
1
)
&
1
;
if
(
ctx
->
alpha
)
avpriv_request_sample
(
ctx
->
avctx
,
"alpha"
);
ctx
->
height
=
AV_RB16
(
buf
+
0x18
);
ctx
->
width
=
AV_RB16
(
buf
+
0x1a
);
...
...
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