summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-10-12 00:17:14 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-10-17 16:54:03 +0800
commitfb4f9a204399e48d1567164ff7e7b348095cc37a (patch)
treed0a7bce235c9f4f84c03b3cd53ad7261191417e1
parentbad48dfe9ae345966a94852b45d4deb327895372 (diff)
downloadffmpeg-fb4f9a204399e48d1567164ff7e7b348095cc37a.tar.gz
avformat/rtpdec_rfc4175: add support for RANGE
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
-rw-r--r--libavformat/rtpdec_rfc4175.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index 93607d74e0..f50cad76d2 100644
--- a/libavformat/rtpdec_rfc4175.c
+++ b/libavformat/rtpdec_rfc4175.c
@@ -118,6 +118,11 @@ static int rfc4175_parse_fmtp(AVFormatContext *s, AVStream *stream,
stream->codecpar->color_primaries = AVCOL_PRI_BT2020;
stream->codecpar->color_space = AVCOL_SPC_BT2020_NCL;
}
+ } else if (!strncmp(attr, "RANGE", 5)) {
+ if (!strncmp(value, "NARROW", 6))
+ stream->codecpar->color_range = AVCOL_RANGE_MPEG;
+ else if (!strncmp(value, "FULL", 4))
+ stream->codecpar->color_range = AVCOL_RANGE_JPEG;
}
return 0;