[FFmpeg-cvslog] avcodec/avs3_parser: pixel format should be native endian

Zhao Zhili git at videolan.org
Mon Mar 24 09:58:15 EET 2025


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Fri Mar 21 21:07:37 2025 +0800| [2a189d44b517ff97a34622be23157f51b8f42cd6] | committer: Zhao Zhili

avcodec/avs3_parser: pixel format should be native endian

Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=2a189d44b517ff97a34622be23157f51b8f42cd6
---

 libavcodec/avs3_parser.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/avs3_parser.c b/libavcodec/avs3_parser.c
index ea495b1c7c..71278c7e2d 100644
--- a/libavcodec/avs3_parser.c
+++ b/libavcodec/avs3_parser.c
@@ -97,7 +97,7 @@ static void parse_avs3_nal_units(AVCodecParserContext *s, const uint8_t *buf,
                 if (sample_precision == 1) {
                     avctx->pix_fmt = AV_PIX_FMT_YUV420P;
                 } else if (sample_precision == 2) {
-                    avctx->pix_fmt = AV_PIX_FMT_YUV420P10LE;
+                    avctx->pix_fmt = AV_PIX_FMT_YUV420P10;
                 } else {
                     avctx->pix_fmt = AV_PIX_FMT_NONE;
                 }



More information about the ffmpeg-cvslog mailing list