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
cc6208cd
Commit
cc6208cd
authored
Dec 05, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mxfdec: set codec_tag for prores codec
parent
3cc5576e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
mxfdec.c
libavformat/mxfdec.c
+12
-0
No files found.
libavformat/mxfdec.c
View file @
cc6208cd
...
...
@@ -2432,6 +2432,18 @@ static int mxf_parse_structural_metadata(MXFContext *mxf)
default:
av_log
(
mxf
->
fc
,
AV_LOG_INFO
,
"Unknown frame layout type: %d
\n
"
,
descriptor
->
frame_layout
);
}
if
(
st
->
codecpar
->
codec_id
==
AV_CODEC_ID_PRORES
)
{
switch
(
descriptor
->
essence_codec_ul
[
14
])
{
case
1
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'c'
,
'o'
);
break
;
case
2
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'c'
,
's'
);
break
;
case
3
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'c'
,
'n'
);
break
;
case
4
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'c'
,
'h'
);
break
;
case
5
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'4'
,
'h'
);
break
;
case
6
:
st
->
codecpar
->
codec_tag
=
MKTAG
(
'a'
,
'p'
,
'4'
,
'x'
);
break
;
}
}
if
(
st
->
codecpar
->
codec_id
==
AV_CODEC_ID_RAWVIDEO
)
{
st
->
codecpar
->
format
=
descriptor
->
pix_fmt
;
if
(
st
->
codecpar
->
format
==
AV_PIX_FMT_NONE
)
{
...
...
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