Modified:
trunk/src/avbin.c
Log:
Force seek to 0th byte when rewinding; fixes some looping problems
(e.g. AVI
file in bruce example) but not all (e.g. OGG/Vorbis still doesn't rewind).
Modified: trunk/src/avbin.c
==============================================================================
--- trunk/src/avbin.c (original)
+++ trunk/src/avbin.c Thu Jun 5 00:35:55 2008
@@ -148,7 +148,11 @@
int i;
AVCodecContext *codec_context;
- av_seek_frame(file->context, -1, timestamp, 0);
+ if (!timestamp)
+ av_seek_frame(file->context, -1, 0,
+ AVSEEK_FLAG_ANY | AVSEEK_FLAG_BYTE);
+ else
+ av_seek_frame(file->context, -1, timestamp, 0);
for (i = 0; i < file->context->nb_streams; i++)
{