summaryrefslogtreecommitdiff
path: root/src/demuxers
diff options
context:
space:
mode:
Diffstat (limited to 'src/demuxers')
-rw-r--r--src/demuxers/demux_flv.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/demuxers/demux_flv.c b/src/demuxers/demux_flv.c
index 68670692d..090fe1097 100644
--- a/src/demuxers/demux_flv.c
+++ b/src/demuxers/demux_flv.c
@@ -473,6 +473,12 @@ static int read_flv_packet(demux_flv_t *this, int preview) {
buf->type = buf_type;
fifo->put(fifo, buf);
this->got_audio_header = 1;
+ if (!INPUT_IS_SEEKABLE(this->input)) {
+ /* stop preview processing immediately, this enables libfaad to
+ * initialize even without INPUT_CAP_SEEKABLE of input stream.
+ */
+ preview = 0;
+ }
}
break;