[FFmpeg-devel] [PATCH 3/4] aformat/rawvideodec: don't force the rawvideo decoder for uyvy422 bitpacked streams

James Almer jamrial at gmail.com
Sat May 6 20:37:58 EEST 2023


The bitpacked decoder can handle it.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavformat/rawvideodec.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/libavformat/rawvideodec.c b/libavformat/rawvideodec.c
index 514e4e044f..d58e54ce24 100644
--- a/libavformat/rawvideodec.c
+++ b/libavformat/rawvideodec.c
@@ -88,7 +88,6 @@ static int rawvideo_read_header(AVFormatContext *ctx)
             tag = MKTAG('U', 'Y', 'V', 'Y');
             pgroup = 4;
             xinc   = 2;
-            st->codecpar->codec_id = AV_CODEC_ID_RAWVIDEO;
         } else {
             av_log(ctx, AV_LOG_ERROR, "unsupported format: %s for bitpacked.\n",
                     s->pixel_format);
-- 
2.40.1



More information about the ffmpeg-devel mailing list