[avbin commit] r35 - trunk/src

1 view
Skip to first unread message

codesite...@google.com

unread,
Jun 5, 2008, 3:36:57 AM6/5/08
to avbin-...@googlegroups.com
Author: Alex.Holkner
Date: Thu Jun 5 00:35:55 2008
New Revision: 35

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++)
{

Reply all
Reply to author
Forward
0 new messages