summaryrefslogtreecommitdiff
path: root/libavformat/dv.c
diff options
context:
space:
mode:
authorMaksym Veremeyenko <verem@m1stereo.tv>2007-06-25 02:08:04 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2007-06-25 02:08:04 +0000
commit05ce0f11e4019f9a0d3fe528b0890f57664b442c (patch)
tree6b459772f8fd5d466c77cbdc41a5e1c9180178dd /libavformat/dv.c
parentffaa3ecb60704dd1ccc2c8365d1afe7fa97691b9 (diff)
* clarifying the AVInputFormat::read_seek return value
* changing dv_read_seek() to return the proper value (patch by Maksym Veremeyenko) Originally committed as revision 9418 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/dv.c')
-rw-r--r--libavformat/dv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/dv.c b/libavformat/dv.c
index 10a3062601..e459ed9742 100644
--- a/libavformat/dv.c
+++ b/libavformat/dv.c
@@ -426,7 +426,8 @@ static int dv_read_seek(AVFormatContext *s, int stream_index,
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)