Commit a1859032 authored by Uwe L. Korn's avatar Uwe L. Korn Committed by Martin Storsjö

flvdec: Do not default to a video and audio stream

If no streams were indicated in the FLV header, do not automatically
allocate by default a video and an audio stream. Instead, in the case
that the header did not indicate the presence of any data, allocate no
stream until data actually arrives for one type.
Signed-off-by: 's avatarMartin Storsjö <>
parent f76e3669
......@@ -559,14 +559,6 @@ static int flv_read_header(AVFormatContext *s)
avio_skip(s->pb, 4);
flags = avio_r8(s->pb);
/* old flvtool cleared this field */
/* FIXME: better fix needed */
if (!flags) {
av_log(s, AV_LOG_WARNING,
"Broken FLV file, which says no streams present, "
"this might fail.\n");
s->ctx_flags |= AVFMTCTX_NOHEADER;
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