[Ffmpeg-cvslog] r6629 - trunk/libavformat/mxf.c
bcoudurier
subversion
Tue Oct 10 15:00:50 CEST 2006
Author: bcoudurier
Date: Tue Oct 10 15:00:50 2006
New Revision: 6629
Modified:
trunk/libavformat/mxf.c
Log:
rewind completely if sample time is negative
Modified: trunk/libavformat/mxf.c
==============================================================================
--- trunk/libavformat/mxf.c (original)
+++ trunk/libavformat/mxf.c Tue Oct 10 15:00:50 2006
@@ -1033,8 +1033,10 @@
int64_t seconds;
int i;
- if (!s->bit_rate || sample_time < 0)
+ if (!s->bit_rate)
return -1;
+ if (sample_time < 0)
+ sample_time = 0;
seconds = av_rescale(sample_time, st->time_base.num, st->time_base.den);
url_fseek(&s->pb, (s->bit_rate * seconds) >> 3, SEEK_SET);
/* sync on KLV essence element */
More information about the ffmpeg-cvslog
mailing list