[FFmpeg-cvslog] asfdec: Fix reading from the pipe

Alexandra Hájková git at videolan.org
Fri Jul 10 20:56:50 CEST 2015


ffmpeg | branch: master | Alexandra Hájková <alexandra.khirnova at gmail.com> | Fri Jul 10 12:39:58 2015 +0200| [872fab4a3df48e7e6484333ee2228c684e319634] | committer: Luca Barbato

asfdec: Fix reading from the pipe

Signed-off-by: Luca Barbato <lu_zero at gentoo.org>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=872fab4a3df48e7e6484333ee2228c684e319634
---

 libavformat/asfdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 9989b80..01d753f 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -922,7 +922,8 @@ static int asf_read_data(AVFormatContext *s, const GUIDParseTable *g)
                size, asf->nb_packets);
     avio_skip(pb, 2); // skip reserved field
     asf->first_packet_offset = avio_tell(pb);
-    align_position(pb, asf->offset, asf->data_size);
+    if (pb->seekable)
+        align_position(pb, asf->offset, asf->data_size);
 
     return 0;
 }



More information about the ffmpeg-cvslog mailing list