mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 09:11:17 +00:00
avformat/rtpdec_rfc4175: add support for RANGE
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
bad48dfe9a
commit
fb4f9a2043
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user