# HG changeset patch # User michael # Date 1177267687 0 # Node ID 355147fa5c72bce5f128b45f1fd2459ed485fefe # Parent 1f882c0d0b79f1b0c0068b61d5b7ce72f66a8ffa dont assert(0) due to buggy rm demuxer diff -r 1f882c0d0b79 -r 355147fa5c72 utils.c --- a/utils.c Sun Apr 22 16:23:44 2007 +0000 +++ b/utils.c Sun Apr 22 18:48:07 2007 +0000 @@ -1217,6 +1217,10 @@ #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;