The branch, master has been updated
via 6b961f5963d8e362137702d38a744b45fba8ba3a (commit)
from a24e0f536dc1056756ad56775a3d1564a2cb0a3f (commit)
- Log -----------------------------------------------------------------
commit 6b961f5963d8e362137702d38a744b45fba8ba3a
Author: Zhao Zhili <[email protected]>
AuthorDate: Wed Oct 8 23:31:11 2025 +0800
Commit: Zhao Zhili <[email protected]>
CommitDate: Tue Oct 14 20:05:55 2025 +0800
avformat/mov: fix missing video size when some decoders are disabled
Fix #20667
Signed-off-by: Zhao Zhili <[email protected]>
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 7fe4678234..922e001e5e 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -5243,16 +5243,22 @@ static int mov_read_trak(MOVContext *c, AVIOContext
*pb, MOVAtom atom)
#endif
}
+#if CONFIG_H261_DECODER || CONFIG_H263_DECODER || CONFIG_MPEG4_DECODER
switch (st->codecpar->codec_id) {
+#if CONFIG_H261_DECODER
case AV_CODEC_ID_H261:
+#endif
+#if CONFIG_H263_DECODER
case AV_CODEC_ID_H263:
+#endif
+#if CONFIG_MPEG4_DECODER
case AV_CODEC_ID_MPEG4:
+#endif
st->codecpar->width = 0; /* let decoder init width/height */
st->codecpar->height= 0;
break;
- default:
- break;
}
+#endif
// If the duration of the mp3 packets is not constant, then they could
need a parser
if (st->codecpar->codec_id == AV_CODEC_ID_MP3
-----------------------------------------------------------------------
Summary of changes:
libavformat/mov.c | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
hooks/post-receive
--
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]