diff options
author | Paul B Mahol <onemda@gmail.com> | 2020-09-22 18:31:14 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2020-09-22 18:37:15 +0200 |
commit | 904ab5365cf4881eae1e5cac980f3c4f252b69cd (patch) | |
tree | dc7e2e45cd6d1b44bad9a4e9a10039c90270e1f6 /libavcodec/magicyuv.c | |
parent | 519bd469d01af1727f943e5b73c964c94f29ccd0 (diff) | |
download | ffmpeg-904ab5365cf4881eae1e5cac980f3c4f252b69cd.tar.gz |
avcodec/magicyuv: add support for recently added new format
Diffstat (limited to 'libavcodec/magicyuv.c')
-rw-r--r-- | libavcodec/magicyuv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libavcodec/magicyuv.c b/libavcodec/magicyuv.c index eed5ad1b40..b56d3e9d32 100644 --- a/libavcodec/magicyuv.c +++ b/libavcodec/magicyuv.c @@ -529,6 +529,14 @@ static int magy_decode_frame(AVCodecContext *avctx, void *data, avctx->pix_fmt = AV_PIX_FMT_GRAY10; s->bps = 10; break; + case 0x7b: + avctx->pix_fmt = AV_PIX_FMT_YUV420P10; + s->hshift[1] = + s->vshift[1] = + s->hshift[2] = + s->vshift[2] = 1; + s->bps = 10; + break; default: avpriv_request_sample(avctx, "Format 0x%X", format); return AVERROR_PATCHWELCOME; |