diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-03-17 07:35:18 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-03-20 20:33:05 -0400 |
commit | e42500cb4f5e51aec072fe1994c367823ca36f47 (patch) | |
tree | 16ad21b84a9dfe5a967f64270c34fef3c90359ac /libavformat/wtv.c | |
parent | 027f60f32b758aa8e7c08685729084b1a12d81e9 (diff) | |
download | ffmpeg-e42500cb4f5e51aec072fe1994c367823ca36f47.tar.gz |
lavf: replace some more avio_seek(SEEK_CUR) with avio_skip
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/wtv.c')
-rw-r--r-- | libavformat/wtv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/wtv.c b/libavformat/wtv.c index ab51af4023..963a6bc753 100644 --- a/libavformat/wtv.c +++ b/libavformat/wtv.c @@ -701,10 +701,10 @@ static AVStream * parse_media_type(AVFormatContext *s, AVStream *st, int sid, return NULL; if (!ff_guidcmp(formattype, format_videoinfo2)) { int consumed = parse_videoinfoheader2(s, st); - avio_seek(pb, FFMAX(size - consumed, 0), SEEK_CUR); + avio_skip(pb, FFMAX(size - consumed, 0)); } else if (!ff_guidcmp(formattype, format_mpeg2_video)) { int consumed = parse_videoinfoheader2(s, st); - avio_seek(pb, FFMAX(size - consumed, 0), SEEK_CUR); + avio_skip(pb, FFMAX(size - consumed, 0)); } else { if (ff_guidcmp(formattype, format_none)) av_log(s, AV_LOG_WARNING, "unknown formattype:"PRI_GUID"\n", ARG_GUID(formattype)); |