From: Limin Wang <[email protected]>
Signed-off-by: Limin Wang <[email protected]>
---
libavformat/rtpdec_rfc4175.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/libavformat/rtpdec_rfc4175.c b/libavformat/rtpdec_rfc4175.c
index 93607d7..f50cad7 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;
--
1.8.3.1
_______________________________________________
ffmpeg-devel mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".