diff options
author | Alexandra Hájková <alexandra.khirnova@gmail.com> | 2015-07-10 12:39:58 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-07-10 13:25:02 +0200 |
commit | 872fab4a3df48e7e6484333ee2228c684e319634 (patch) | |
tree | 8b14ad5ab02418ebc8cbb503df438431d23a4317 | |
parent | 67c884eb07c7e9f2cb72bb8d447d945e5ac8cac7 (diff) | |
download | ffmpeg-872fab4a3df48e7e6484333ee2228c684e319634.tar.gz |
asfdec: Fix reading from the pipe
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
-rw-r--r-- | libavformat/asfdec.c | 3 |
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; } |