[Ffmpeg-cvslog] r8790 - trunk/libavformat/utils.c
michael
subversion
Sun Apr 22 20:48:07 CEST 2007
Author: michael
Date: Sun Apr 22 20:48:07 2007
New Revision: 8790
Log:
dont assert(0) due to buggy rm demuxer
Modified:
trunk/libavformat/utils.c
Modified: trunk/libavformat/utils.c
==============================================================================
--- trunk/libavformat/utils.c (original)
+++ trunk/libavformat/utils.c Sun Apr 22 20:48:07 2007
@@ -1217,6 +1217,10 @@ int64_t av_gen_search(AVFormatContext *s
#ifdef DEBUG_SEEK
av_log(s, AV_LOG_DEBUG, "%"PRId64" %"PRId64" %"PRId64" / %"PRId64" %"PRId64" %"PRId64" target:%"PRId64" limit:%"PRId64" start:%"PRId64" noc:%d\n", pos_min, pos, pos_max, ts_min, ts, ts_max, target_ts, pos_limit, start_pos, no_change);
#endif
+ if(ts == AV_NOPTS_VALUE){
+ av_log(s, AV_LOG_ERROR, "read_timestamp() failed in the middle\n");
+ return -1;
+ }
assert(ts != AV_NOPTS_VALUE);
if (target_ts <= ts) {
pos_limit = start_pos - 1;
More information about the ffmpeg-cvslog
mailing list