Support of grayscale video (from IR-camera as example)
@@ -96,6 +96,16 @@ static int rfc4175_parse_format(AVStream *stream, PayloadContext *data)
} else {
return AVERROR_INVALIDDATA;
}
+ } else if (!strncmp(data->sampling, "Gray", 3)) {
+ tag = MKTAG('Y', '8', ' ', ' ');
+ if (data->depth == 8) {
+ data->xinc = 1;
+ data->pgroup = 1;
+ pixfmt = AV_PIX_FMT_GRAY8;
+ stream->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
+ } else {
+ return AVERROR_INVALIDDATA;
+ }
} else {
return AVERROR_INVALIDDATA;
}