diff dv.c @ 2203:a81bd08b5ff2 libavformat

* clarifying the AVInputFormat::read_seek return value * changing dv_read_seek() to return the proper value (patch by Maksym Veremeyenko)
author romansh
date Mon, 25 Jun 2007 02:08:04 +0000
parents aedce96c28ff
children b21c2af60bc9
line wrap: on
line diff
--- a/dv.c	Sun Jun 24 21:50:09 2007 +0000
+++ b/dv.c	Mon Jun 25 02:08:04 2007 +0000
@@ -426,7 +426,8 @@
 
     dv_offset_reset(c, offset / c->sys->frame_size);
 
-    return url_fseek(&s->pb, offset, SEEK_SET);
+    offset = url_fseek(&s->pb, offset, SEEK_SET);
+    return (offset < 0)?offset:0;
 }
 
 static int dv_read_close(AVFormatContext *s)