Hi, patch attached.
From af75cff37a296072fad21648459b4e005ce1afc6 Mon Sep 17 00:00:00 2001 From: Paul B Mahol <one...@gmail.com> Date: Wed, 2 Mar 2016 20:56:01 +0100 Subject: [PATCH] avformat/yuv4mpegdec: fix seeking for partial files
Signed-off-by: Paul B Mahol <one...@gmail.com> --- libavformat/yuv4mpegdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/yuv4mpegdec.c b/libavformat/yuv4mpegdec.c index ea1ae25..5d338c2 100644 --- a/libavformat/yuv4mpegdec.c +++ b/libavformat/yuv4mpegdec.c @@ -307,8 +307,7 @@ static int yuv4_read_packet(AVFormatContext *s, AVPacket *pkt) static int yuv4_read_seek(AVFormatContext *s, int stream_index, int64_t pts, int flags) { - avio_seek(s->pb, pts * s->packet_size + s->internal->data_offset, SEEK_SET); - return 0; + return avio_seek(s->pb, pts * s->packet_size + s->internal->data_offset, SEEK_SET); } static int yuv4_probe(AVProbeData *pd) -- 1.9.1
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel