Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> --- libavformat/mov.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c index c945586c29..5440078459 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -7103,7 +7103,7 @@ static int mov_probe(const AVProbeData *p) int64_t offset; uint32_t tag; int score = 0; - int moov_offset = -1; + int moov_offset = 0; /* check file header */ offset = 0; @@ -7160,7 +7160,7 @@ static int mov_probe(const AVProbeData *p) } offset += size; } - if (score > AVPROBE_SCORE_MAX - 50 && moov_offset != -1) { + if (score > AVPROBE_SCORE_MAX - 50 && moov_offset) { /* moov atom in the header - we should make sure that this is not a * MOV-packed MPEG-PS */ offset = moov_offset; -- 2.17.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".