Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
d5343a50
Commit
d5343a50
authored
Apr 03, 2018
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/libaomdec: remove duplicate code
Signed-off-by:
James Almer
<
jamrial@gmail.com
>
parent
673604e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
libaomdec.c
libavcodec/libaomdec.c
+2
-11
No files found.
libavcodec/libaomdec.c
View file @
d5343a50
...
@@ -95,17 +95,6 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
...
@@ -95,17 +95,6 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
switch
(
img
->
fmt
)
{
switch
(
img
->
fmt
)
{
case
AOM_IMG_FMT_I420
:
case
AOM_IMG_FMT_I420
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P
;
avctx
->
profile
=
FF_PROFILE_AV1_MAIN
;
return
0
;
case
AOM_IMG_FMT_I422
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P
;
avctx
->
profile
=
FF_PROFILE_AV1_PROFESSIONAL
;
return
0
;
case
AOM_IMG_FMT_I444
:
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
avctx
->
profile
=
FF_PROFILE_AV1_HIGH
;
return
0
;
case
AOM_IMG_FMT_I42016
:
case
AOM_IMG_FMT_I42016
:
if
(
img
->
bit_depth
==
8
)
{
if
(
img
->
bit_depth
==
8
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV420P
;
...
@@ -122,6 +111,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
...
@@ -122,6 +111,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
}
else
{
}
else
{
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
case
AOM_IMG_FMT_I422
:
case
AOM_IMG_FMT_I42216
:
case
AOM_IMG_FMT_I42216
:
if
(
img
->
bit_depth
==
8
)
{
if
(
img
->
bit_depth
==
8
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV422P
;
...
@@ -138,6 +128,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
...
@@ -138,6 +128,7 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
}
else
{
}
else
{
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
}
case
AOM_IMG_FMT_I444
:
case
AOM_IMG_FMT_I44416
:
case
AOM_IMG_FMT_I44416
:
if
(
img
->
bit_depth
==
8
)
{
if
(
img
->
bit_depth
==
8
)
{
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
avctx
->
pix_fmt
=
AV_PIX_FMT_YUV444P
;
...
...
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