[xiph-commits] r8242 - trunk/ffmpeg2theora

j at motherfish-iii.xiph.org j at motherfish-iii.xiph.org
Sun Nov 21 08:57:53 PST 2004


Author: j
Date: 2004-11-21 08:57:52 -0800 (Sun, 21 Nov 2004)
New Revision: 8242

Modified:
   trunk/ffmpeg2theora/ffmpeg2theora.c
Log:
replace this->video_index with -1  for now.



Modified: trunk/ffmpeg2theora/ffmpeg2theora.c
===================================================================
--- trunk/ffmpeg2theora/ffmpeg2theora.c	2004-11-21 15:51:49 UTC (rev 8241)
+++ trunk/ffmpeg2theora/ffmpeg2theora.c	2004-11-21 16:57:52 UTC (rev 8242)
@@ -433,9 +433,9 @@
 		theoraframes_init (&info);
 		/*seek to start time*/	
 #if LIBAVFORMAT_BUILD <= 4616
-		av_seek_frame( this->context, this->video_index, (int64_t)AV_TIME_BASE*this->start_time);
+		av_seek_frame( this->context, -1, (int64_t)AV_TIME_BASE*this->start_time);
 #else
-		av_seek_frame( this->context, this->video_index, (int64_t)AV_TIME_BASE*this->start_time, 1);
+		av_seek_frame( this->context, -1, (int64_t)AV_TIME_BASE*this->start_time, 1);
 #endif
 		/*check for end time and caclulate number of frames to encode*/
 		int no_frames = fps*(this->end_time - this->start_time);



More information about the commits mailing list