Commit 061a6cb6 authored by alex's avatar alex

workaround for broken flvtoolized files

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@8277 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 94bb456b
...@@ -230,6 +230,12 @@ static int flv_read_header(AVFormatContext *s, ...@@ -230,6 +230,12 @@ static int flv_read_header(AVFormatContext *s,
url_fskip(&s->pb, 4); url_fskip(&s->pb, 4);
flags = get_byte(&s->pb); flags = get_byte(&s->pb);
/* old flvtool cleared this field */
/* FIXME: better fix needed */
if (!flags) {
flags = FLV_HEADER_FLAG_HASVIDEO | FLV_HEADER_FLAG_HASAUDIO;
av_log(s, AV_LOG_WARNING, "Broken FLV file, which says no streams present, this might fail\n");
}
if(flags & FLV_HEADER_FLAG_HASVIDEO){ if(flags & FLV_HEADER_FLAG_HASVIDEO){
st = av_new_stream(s, 0); st = av_new_stream(s, 0);
......
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