diff mbox series

[FFmpeg-devel,17/20] avformat/movenc: add support for UYVA pixel format

Message ID 20241007122955.309-17-jamrial@gmail.com
State New
Headers show
Series [FFmpeg-devel,01/20] swscale/output: add missing yuv2packed1 and yuv2packed2 support for VUY{X, A} | expand

Commit Message

James Almer Oct. 7, 2024, 12:29 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavformat/isom_tags.c | 1 +
 libavformat/movenc.c    | 1 +
 2 files changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/libavformat/isom_tags.c b/libavformat/isom_tags.c
index 5dd72d570e..836bf14b80 100644
--- a/libavformat/isom_tags.c
+++ b/libavformat/isom_tags.c
@@ -33,6 +33,7 @@  const AVCodecTag ff_codec_movvideo_tags[] = {
     { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */
     { AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */
     { AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */
+    { AV_CODEC_ID_RAWVIDEO, MKTAG('v', '4', '0', '8') }, /* uncompressed  8-bit 4:4:4:4 */
 
     { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
     { AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index d20e45cf81..4d8dfe5783 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2612,6 +2612,7 @@  static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
 
     int uncompressed_ycbcr = ((track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVY422)
                            || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_YUYV422)
+                           || (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVA)
                            ||  track->par->codec_id == AV_CODEC_ID_V308
                            ||  track->par->codec_id == AV_CODEC_ID_V408
                            ||  track->par->codec_id == AV_CODEC_ID_V410