aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/r3d.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2011-03-15 09:14:38 +0100
committerRonald S. Bultje <rsbultje@gmail.com>2011-03-16 22:24:51 -0400
commit45a8a02a4151c9ff0d1161bf90bffcfbbb312fb8 (patch)
tree79beacdc9d6d90d0e31558526d83033200f4361d /libavformat/r3d.c
parentcbf5d22d24945e52b3c1e4c1a00d4d8179be930a (diff)
downloadffmpeg-45a8a02a4151c9ff0d1161bf90bffcfbbb312fb8.tar.gz
lavf: replace avio_seek(SEEK_CUR) with avio_skip where it makes sense
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/r3d.c')
-rw-r--r--libavformat/r3d.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/r3d.c b/libavformat/r3d.c
index 39f97ff9aa..aad88ee9c7 100644
--- a/libavformat/r3d.c
+++ b/libavformat/r3d.c
@@ -72,7 +72,7 @@ static int r3d_read_red1(AVFormatContext *s)
tmp = avio_rb32(s->pb); // filenum
av_dlog(s, "filenum %d\n", tmp);
- avio_seek(s->pb, 32, SEEK_CUR); // unknown
+ avio_skip(s->pb, 32); // unknown
st->codec->width = avio_rb32(s->pb);
st->codec->height = avio_rb32(s->pb);
@@ -152,7 +152,7 @@ static void r3d_read_reos(AVFormatContext *s)
tmp = avio_rb32(s->pb);
av_dlog(s, "num audio chunks %d\n", tmp);
- avio_seek(s->pb, 6*4, SEEK_CUR);
+ avio_skip(s->pb, 6*4);
}
static int r3d_read_header(AVFormatContext *s, AVFormatParameters *ap)
@@ -332,7 +332,7 @@ static int r3d_read_packet(AVFormatContext *s, AVPacket *pkt)
break;
default:
skip:
- avio_seek(s->pb, atom.size-8, SEEK_CUR);
+ avio_skip(s->pb, atom.size-8);
}
}
return err;