On 26/05/15 15:24, Vittorio Giovara wrote:
From: Thierry Foucu <[email protected]>

Signed-off-by: Michael Niedermayer <[email protected]>
Signed-off-by: Vittorio Giovara <[email protected]>
---
  libavformat/mov.c | 6 ++++++
  1 file changed, 6 insertions(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 70fa1e0..a965328 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1989,6 +1989,12 @@ static int mov_read_stts(MOVContext *c, AVIOContext *pb, 
MOVAtom atom)
              av_log(c->fc, AV_LOG_ERROR, "Invalid sample_count=%d\n", 
sample_count);
              return AVERROR_INVALIDDATA;
          }
+        /* sample_duration < 0 is invalid based on the spec */
+        if (sample_duration < 0) {
+            av_log(c->fc, AV_LOG_ERROR,
+                   "Invalid SampleDelta in STTS %d", sample_duration);

warning here please.


_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to