# HG changeset patch # User michael # Date 1089763806 0 # Node ID d33ce0cfc81cdb4a6300520efd8935092ff5e901 # Parent abc8a657a8dd0b2017d784615343e21ab2d4bb04 play more broken files diff -r abc8a657a8dd -r d33ce0cfc81c avidec.c --- a/avidec.c Tue Jul 13 20:59:29 2004 +0000 +++ b/avidec.c Wed Jul 14 00:10:06 2004 +0000 @@ -120,7 +120,8 @@ #endif if (tag1 == MKTAG('m', 'o', 'v', 'i')) { avi->movi_list = url_ftell(pb) - 4; - avi->movi_end = avi->movi_list + size; + if(size) avi->movi_end = avi->movi_list + size; + else avi->movi_end = url_filesize(url_fileno(pb)); #ifdef DEBUG printf("movi end=%Lx\n", avi->movi_end); #endif @@ -443,7 +444,7 @@ // pkt->dts += ast->start; if(ast->sample_size) pkt->dts /= ast->sample_size; -//av_log(NULL, AV_LOG_DEBUG, "dts:%Ld offset:%d %d/%d %d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, AV_TIME_BASE, n, size); +//av_log(NULL, AV_LOG_DEBUG, "dts:%Ld offset:%d %d/%d smpl_siz:%d base:%d st:%d size:%d\n", pkt->dts, ast->frame_offset, ast->scale, ast->rate, ast->sample_size, AV_TIME_BASE, n, size); pkt->stream_index = n; /* FIXME: We really should read index for that */ if (st->codec.codec_type == CODEC_TYPE_VIDEO) {