[FFmpeg-cvslog] mov: Fix empty edit detection.
Yusuke Nakamura
git at videolan.org
Tue Jun 21 03:45:18 CEST 2011
ffmpeg | branch: master | Yusuke Nakamura <muken.the.vfrmaniac at gmail.com> | Sun Jun 5 01:28:43 2011 +0900| [ae88e9cf99837e5eec811c817a17b2cbc9724a01] | committer: Alex Converse
mov: Fix empty edit detection.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ae88e9cf99837e5eec811c817a17b2cbc9724a01
---
libavformat/mov.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/libavformat/mov.c b/libavformat/mov.c
index ab5c4e2..c720440 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -2193,7 +2193,7 @@ static int mov_read_elst(MOVContext *c, AVIOContext *pb, MOVAtom atom)
time = avio_rb64(pb);
} else {
duration = avio_rb32(pb); /* segment duration */
- time = avio_rb32(pb); /* media time */
+ time = (int32_t)avio_rb32(pb); /* media time */
}
avio_rb32(pb); /* Media rate */
if (i == 0 && time >= -1) {
More information about the ffmpeg-cvslog
mailing list