asfdec: Fix reading from the pipe

Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
Alexandra Hájková 2015-07-10 12:39:58 +02:00 committed by Luca Barbato
parent 67c884eb07
commit 872fab4a3d

View File

@ -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;
}