[FFmpeg-cvslog] r22645 - trunk/libavformat/dv.c

cehoyos subversion
Tue Mar 23 18:22:25 CET 2010


Author: cehoyos
Date: Tue Mar 23 18:22:25 2010
New Revision: 22645

Log:
Fix seeking in DV when filesize is unknown.

Patch by Tomas H?rdin, tomas D hardin A  codemill D se

Modified:
   trunk/libavformat/dv.c

Modified: trunk/libavformat/dv.c
==============================================================================
--- trunk/libavformat/dv.c	Tue Mar 23 09:00:37 2010	(r22644)
+++ trunk/libavformat/dv.c	Tue Mar 23 18:22:25 2010	(r22645)
@@ -375,7 +375,7 @@ static int64_t dv_frame_offset(AVFormatC
 
     offset = sys->frame_size * timestamp;
 
-    if (offset > max_offset) offset = max_offset;
+    if (size >= 0 && offset > max_offset) offset = max_offset;
     else if (offset < 0) offset = 0;
 
     return offset;



More information about the ffmpeg-cvslog mailing list