summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2018-03-28 21:29:15 -0300
committerJames Almer <jamrial@gmail.com>2018-03-28 21:29:15 -0300
commitd039d7d4a4a56861e210761902bcf0617e0800fa (patch)
treeae4c30ba56aef0191ecde8f2c63ce1717584bf07
parent5c75438b893539dd17998c489fb4c540fc5a6e48 (diff)
avcodec/libaomdec: remove references to yuv440p pixfmt
While the enums are defined in the libaom headers, it's not officially supported. Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r--libavcodec/libaomdec.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/libavcodec/libaomdec.c b/libavcodec/libaomdec.c
index 5158ea8d76..29f0afd2ac 100644
--- a/libavcodec/libaomdec.c
+++ b/libavcodec/libaomdec.c
@@ -102,9 +102,6 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
case AOM_IMG_FMT_I422:
avctx->pix_fmt = AV_PIX_FMT_YUV422P;
return 0;
- case AOM_IMG_FMT_I440:
- avctx->pix_fmt = AV_PIX_FMT_YUV440P;
- return 0;
case AOM_IMG_FMT_I444:
avctx->pix_fmt = avctx->colorspace == AVCOL_SPC_RGB ?
AV_PIX_FMT_GBRP : AV_PIX_FMT_YUV444P;
@@ -135,19 +132,6 @@ static int set_pix_fmt(AVCodecContext *avctx, struct aom_image *img)
} else {
return AVERROR_INVALIDDATA;
}
- case AOM_IMG_FMT_I44016:
- if (img->bit_depth == 8) {
- avctx->pix_fmt = AV_PIX_FMT_YUV440P;
- return 0;
- } else if (img->bit_depth == 10) {
- avctx->pix_fmt = AV_PIX_FMT_YUV440P10;
- return 0;
- } else if (img->bit_depth == 12) {
- avctx->pix_fmt = AV_PIX_FMT_YUV440P12;
- return 0;
- } else {
- return AVERROR_INVALIDDATA;
- }
case AOM_IMG_FMT_I44416:
if (img->bit_depth == 8) {
avctx->pix_fmt = avctx->colorspace == AVCOL_SPC_RGB ?