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
db4786f1
Commit
db4786f1
authored
Mar 13, 2016
by
Carl Eugen Hoyos
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/hevc_ps: Support GBR decoding.
parent
58cb1fb1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
hevc_ps.c
libavcodec/hevc_ps.c
+13
-0
version.h
libavcodec/version.h
+1
-1
No files found.
libavcodec/hevc_ps.c
View file @
db4786f1
...
...
@@ -561,6 +561,19 @@ static void decode_vui(GetBitContext *gb, AVCodecContext *avctx,
vui
->
transfer_characteristic
=
AVCOL_TRC_UNSPECIFIED
;
if
(
vui
->
matrix_coeffs
>=
AVCOL_SPC_NB
)
vui
->
matrix_coeffs
=
AVCOL_SPC_UNSPECIFIED
;
if
(
vui
->
matrix_coeffs
==
AVCOL_SPC_RGB
)
{
switch
(
sps
->
pix_fmt
)
{
case
AV_PIX_FMT_YUV444P
:
sps
->
pix_fmt
=
AV_PIX_FMT_GBRP
;
break
;
case
AV_PIX_FMT_YUV444P10
:
sps
->
pix_fmt
=
AV_PIX_FMT_GBRP10
;
break
;
case
AV_PIX_FMT_YUV444P12
:
sps
->
pix_fmt
=
AV_PIX_FMT_GBRP12
;
break
;
}
}
}
}
...
...
libavcodec/version.h
View file @
db4786f1
...
...
@@ -29,7 +29,7 @@
#define LIBAVCODEC_VERSION_MAJOR 57
#define LIBAVCODEC_VERSION_MINOR 28
#define LIBAVCODEC_VERSION_MICRO 10
1
#define LIBAVCODEC_VERSION_MICRO 10
2
#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