diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2021-11-11 22:39:14 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2021-11-25 15:07:15 +0800 |
commit | 7b55f95f71559b2e76bdc6e7d6dcf12b3b5a8677 (patch) | |
tree | 5fd078c54a204d8761f8d8e3de6f619aba488b13 /libavformat/sdp.c | |
parent | 3436864e681bfe81b9de3821e822ca636264ad65 (diff) |
avformat: suppport YUV 4:2:2 10-bit 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 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/sdp.c b/libavformat/sdp.c index cc04d70c0d..5ad2a54474 100644 --- a/libavformat/sdp.c +++ b/libavformat/sdp.c @@ -660,6 +660,7 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int p->width, p->height, pix_fmt, config); break; } + case AV_CODEC_ID_BITPACKED: case AV_CODEC_ID_RAWVIDEO: { const char *pix_fmt; int bit_depth = 8; @@ -668,6 +669,10 @@ static char *sdp_write_media_attributes(char *buff, int size, AVStream *st, int case AV_PIX_FMT_UYVY422: pix_fmt = "YCbCr-4:2:2"; break; + case AV_PIX_FMT_YUV422P10: + pix_fmt = "YCbCr-4:2:2"; + bit_depth = 10; + break; case AV_PIX_FMT_YUV420P: pix_fmt = "YCbCr-4:2:0"; break; |