[FFmpeg-cvslog] avformat/mov: don't export frame cropping stream side data when the clap box is a no-op
James Almer
git at videolan.org
Fri Jul 19 05:46:05 EEST 2024
ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jul 17 22:53:01 2024 -0300| [3de65f47e0cd4c971cc78901c213210e6ba26abd] | committer: James Almer
avformat/mov: don't export frame cropping stream side data when the clap box is a no-op
Signed-off-by: James Almer <jamrial at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=3de65f47e0cd4c971cc78901c213210e6ba26abd
---
libavformat/mov.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ce95842ce5..20efc74f00 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1262,6 +1262,9 @@ static int mov_read_clap(MOVContext *c, AVIOContext *pb, MOVAtom atom)
bottom = st->codecpar->height - 1 - bottom;
right = st->codecpar->width - 1 - right;
+ if (!(left | right | top | bottom))
+ return 0;
+
if ((left + right) >= st->codecpar->width ||
(top + bottom) >= st->codecpar->height)
return AVERROR_INVALIDDATA;
More information about the ffmpeg-cvslog
mailing list