ffmpeg | branch: master | James Almer <jamr...@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 <jamr...@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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

To unsubscribe, visit link above, or email
ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to