aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandra Hájková <alexandra.khirnova@gmail.com>2015-07-22 16:10:25 +0200
committerAnton Khirnov <anton@khirnov.net>2015-07-23 10:50:27 +0200
commit7f388c0fabc51eca3106e7cc443393269435ab52 (patch)
tree19efc13e60fcb89b6976a06e490038fe8f33a46d
parentae5a8dca675ee544178225256893e679b750cb63 (diff)
downloadffmpeg-7f388c0fabc51eca3106e7cc443393269435ab52.tar.gz
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: Anton Khirnov <anton@khirnov.net>
-rw-r--r--libavformat/asfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index d9e9a5a359..752d45c2f0 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -905,7 +905,7 @@ static int asf_read_data(AVFormatContext *s, const GUIDParseTable *g)
uint64_t size = asf->data_size = avio_rl64(pb);
int i;
- if (!asf->data_reached && pb->seekable) {
+ if (!asf->data_reached) {
asf->data_reached = 1;
asf->data_offset = asf->offset;
}