diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-11-24 19:14:17 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-11-25 15:07:19 +0800 |
commit | 522f577d7eca66c65aece841610cb008a10c1a2e (patch) | |
tree | 855733e6fdd3a61682f73d2629ffbf02685f3bcb /libavformat/sdp.c | |
parent | 7b55f95f71559b2e76bdc6e7d6dcf12b3b5a8677 (diff) | |
download | ffmpeg-522f577d7eca66c65aece841610cb008a10c1a2e.tar.gz |
avformat/rtp: support RGB/BGR for rfc4175
Reviewed-by: Lynne <dev@lynne.ee>
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/sdp.c')
-rw-r--r-- | libavformat/sdp.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index 5ad2a54474..a41c2cf655 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -676,6 +676,12 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int case AV_PIX_FMT_YUV420P: pix_fmt = "YCbCr-4:2:0"; break; + case AV_PIX_FMT_RGB24: + pix_fmt = "RGB"; + break; + case AV_PIX_FMT_BGR24: + pix_fmt = "BGR"; + break; default: av_log(fmt, AV_LOG_ERROR, "Unsupported pixel format.\n"); return NULL; |