asfdec: Fix reading from the pipe

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
pull/140/head
Alexandra Hájková 10 years ago committed by Luca Barbato
parent 67c884eb07
commit 872fab4a3d
  1. 3
      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;
}

Loading…
Cancel
Save