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
aefbb2bf
Commit
aefbb2bf
authored
Nov 02, 2018
by
Vittorio Giovara
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
proresdec2: Parse codec_tag and export profile information
parent
cdc487bf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
1 deletion
+25
-1
proresdec2.c
libavcodec/proresdec2.c
+24
-0
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/proresdec2.c
View file @
aefbb2bf
...
...
@@ -62,6 +62,30 @@ static av_cold int decode_init(AVCodecContext *avctx)
permute
(
ctx
->
progressive_scan
,
ff_prores_progressive_scan
,
idct_permutation
);
permute
(
ctx
->
interlaced_scan
,
ff_prores_interlaced_scan
,
idct_permutation
);
switch
(
avctx
->
codec_tag
)
{
case
MKTAG
(
'a'
,
'p'
,
'c'
,
'o'
):
avctx
->
profile
=
FF_PROFILE_PRORES_PROXY
;
break
;
case
MKTAG
(
'a'
,
'p'
,
'c'
,
's'
):
avctx
->
profile
=
FF_PROFILE_PRORES_LT
;
break
;
case
MKTAG
(
'a'
,
'p'
,
'c'
,
'n'
):
avctx
->
profile
=
FF_PROFILE_PRORES_STANDARD
;
break
;
case
MKTAG
(
'a'
,
'p'
,
'c'
,
'h'
):
avctx
->
profile
=
FF_PROFILE_PRORES_HQ
;
break
;
case
MKTAG
(
'a'
,
'p'
,
'4'
,
'h'
):
avctx
->
profile
=
FF_PROFILE_PRORES_4444
;
break
;
case
MKTAG
(
'a'
,
'p'
,
'4'
,
'x'
):
avctx
->
profile
=
FF_PROFILE_PRORES_XQ
;
break
;
default:
avctx
->
profile
=
FF_PROFILE_UNKNOWN
;
av_log
(
avctx
,
AV_LOG_WARNING
,
"Unknown prores profile %d
\n
"
,
avctx
->
codec_tag
);
}
return
0
;
}
...
...
libavcodec/version.h
View file @
aefbb2bf
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 58
#define LIBAVCODEC_VERSION_MINOR 38
#define LIBAVCODEC_VERSION_MICRO 10
0
#define LIBAVCODEC_VERSION_MICRO 10
1
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
LIBAVCODEC_VERSION_MINOR, \
...
...
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