summaryrefslogtreecommitdiff
path: root/libavformat/asfdec.c
diff options
context:
space:
mode:
authorAlexandra Hájková <alexandra.khirnova@gmail.com>2015-07-10 12:39:58 +0200
committerLuca Barbato <lu_zero@gentoo.org>2015-07-10 13:25:02 +0200
commit872fab4a3df48e7e6484333ee2228c684e319634 (patch)
tree8b14ad5ab02418ebc8cbb503df438431d23a4317 /libavformat/asfdec.c
parent67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7 (diff)
asfdec: Fix reading from the pipe
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r--libavformat/asfdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 9989b8073c..01d753f80a 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;
}