mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-30 14:40:32 +00:00
Recommit r12809
Log: 10l Setting AVFMTCTX_NOHEADER if streams<2 so phantom streams are found. fixes WELCOMETOBELGRADE.flv After seeking bug has been fixed. Originally committed as revision 12813 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
0366654e2b
commit
b41497e903
@ -257,6 +257,10 @@ static int flv_read_header(AVFormatContext *s,
|
||||
av_log(s, AV_LOG_WARNING, "Broken FLV file, which says no streams present, this might fail\n");
|
||||
}
|
||||
|
||||
if((flags & (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
|
||||
!= (FLV_HEADER_FLAG_HASVIDEO|FLV_HEADER_FLAG_HASAUDIO))
|
||||
s->ctx_flags |= AVFMTCTX_NOHEADER;
|
||||
|
||||
if(flags & FLV_HEADER_FLAG_HASVIDEO){
|
||||
if(!create_stream(s, 0))
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
Reference in New Issue
Block a user