summaryrefslogtreecommitdiff
path: root/libavformat/yuv4mpegdec.c
diff options
context:
space:
mode:
authorMateusz <mateuszb@poczta.onet.pl>2017-10-07 19:05:53 +0200
committerPaul B Mahol <onemda@gmail.com>2017-10-26 18:32:28 +0200
commita4743d2574254aa0c494b337947e8c9880c7ead7 (patch)
treeb5474dad4e1d31befaa8108054be7da3c1d21cec /libavformat/yuv4mpegdec.c
parentf2c867051c8fb2eb06c1b43a4b08d60a1eafd987 (diff)
avformat/yuv4mpeg: add gray9/10/12 support
Signed-off-by: Mateusz Brzostek <mateuszb@poczta.onet.pl>
Diffstat (limited to 'libavformat/yuv4mpegdec.c')
-rw-r--r--libavformat/yuv4mpegdec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c
index 462b823860..ff0125e4cf 100644
--- a/libavformat/yuv4mpegdec.c
+++ b/libavformat/yuv4mpegdec.c
@@ -126,6 +126,12 @@ static int yuv4_read_header(AVFormatContext *s)
pix_fmt = AV_PIX_FMT_YUV444P;
} else if (strncmp("mono16", tokstart, 6) == 0) {
pix_fmt = AV_PIX_FMT_GRAY16;
+ } else if (strncmp("mono12", tokstart, 6) == 0) {
+ pix_fmt = AV_PIX_FMT_GRAY12;
+ } else if (strncmp("mono10", tokstart, 6) == 0) {
+ pix_fmt = AV_PIX_FMT_GRAY10;
+ } else if (strncmp("mono9", tokstart, 5) == 0) {
+ pix_fmt = AV_PIX_FMT_GRAY9;
} else if (strncmp("mono", tokstart, 4) == 0) {
pix_fmt = AV_PIX_FMT_GRAY8;
} else {