From ef87deba4368a837c5c6316b1b9df9b3d3518929 Mon Sep 17 00:00:00 2001 From: Martin Jacobs Date: Sun, 7 Feb 2010 13:46:15 +0100 Subject: Fix Flash video with aac not playing audio (HTTP etc.) --- src/demuxers/demux_flv.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/demuxers/demux_flv.c b/src/demuxers/demux_flv.c index 6b5a72a1b..c421e6053 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; -- cgit v1.2.3