Commit 7f388c0f authored by Alexandra Hájková's avatar Alexandra Hájková Committed by Anton Khirnov

asfdec: remove the wrong condition

this condition breaks reading from the pipe as data_reached variable
have to be set to break while in the asf_read_header just after the Data
Object is found
Signed-off-by: 's avatarAnton Khirnov <anton@khirnov.net>
parent ae5a8dca
...@@ -905,7 +905,7 @@ static int asf_read_data(AVFormatContext *s, const GUIDParseTable *g) ...@@ -905,7 +905,7 @@ static int asf_read_data(AVFormatContext *s, const GUIDParseTable *g)
uint64_t size = asf->data_size = avio_rl64(pb); uint64_t size = asf->data_size = avio_rl64(pb);
int i; int i;
if (!asf->data_reached && pb->seekable) { if (!asf->data_reached) {
asf->data_reached = 1; asf->data_reached = 1;
asf->data_offset = asf->offset; asf->data_offset = asf->offset;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment