Modified:
trunk/src/avbin.c
Log:
Byte hack on seeking to 0 doesn't seem to work that great, take it out (but
leave avcodec_flush_buffers in, as it's documented as required).
Modified: trunk/src/avbin.c
==============================================================================
--- trunk/src/avbin.c (original)
+++ trunk/src/avbin.c Sat May 17 06:46:44 2008
@@ -148,11 +148,7 @@
int i;
AVCodecContext *codec_context;
- if (!timestamp)
- av_seek_frame(file->context, -1, 0,
- AVSEEK_FLAG_ANY | AVSEEK_FLAG_BYTE);
- else
- av_seek_frame(file->context, -1, timestamp, 0);
+ av_seek_frame(file->context, -1, timestamp, 0);
for (i = 0; i < file->context->nb_streams; i++)
{