[SCM] libav/experimental: Fix seeking in DV when filesize is unknown.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 17:05:04 UTC 2013


The following commit has been merged in the experimental branch:
commit d40a999a1c1841577d24555ab3de3e90afe51654
Author: Tomas Härdin <Tomas.hardin at codemill.se>
Date:   Tue Mar 23 17:22:25 2010 +0000

    Fix seeking in DV when filesize is unknown.
    
    Patch by Tomas Härdin, tomas D hardin A  codemill D se
    
    Originally committed as revision 22645 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/dv.c b/libavformat/dv.c
index 085e8d2..af8bb92 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -375,7 +375,7 @@ static int64_t dv_frame_offset(AVFormatContext *s, DVDemuxContext *c,
 
     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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list