summaryrefslogtreecommitdiff
path: root/libavformat/rtpenc_rfc4175.c
diff options
context:
space:
mode:
authorLimin Wang <lance.lmwang@gmail.com>2021-11-24 19:14:17 +0800
committerLimin Wang <lance.lmwang@gmail.com>2021-11-25 15:07:19 +0800
commit522f577d7eca66c65aece841610cb008a10c1a2e (patch)
tree855733e6fdd3a61682f73d2629ffbf02685f3bcb /libavformat/rtpenc_rfc4175.c
parent7b55f95f71559b2e76bdc6e7d6dcf12b3b5a8677 (diff)
downloadffmpeg-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/rtpenc_rfc4175.c')
-rw-r--r--libavformat/rtpenc_rfc4175.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libavformat/rtpenc_rfc4175.c b/libavformat/rtpenc_rfc4175.c
index 4623b4ac23..ea4c3705f3 100644
--- a/libavformat/rtpenc_rfc4175.c
+++ b/libavformat/rtpenc_rfc4175.c
@@ -45,6 +45,14 @@ void ff_rtp_send_raw_rfc4175(AVFormatContext *s1, const uint8_t *buf, int size)
xinc = yinc = 4;
pgroup = 6;
break;
+ case AV_PIX_FMT_RGB24:
+ xinc = yinc = 1;
+ pgroup = 3;
+ break;
+ case AV_PIX_FMT_BGR24:
+ xinc = yinc = 1;
+ pgroup = 3;
+ break;
default:
return;
}