flvdec: Remove AVFMTCTX_NOHEADER if both flags and metadata claim 1 stream
authorAsad Mehmood <asad78611@googlemail.com>
Wed, 7 Sep 2011 22:18:07 +0000 (23:18 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 21 Sep 2011 15:57:01 +0000 (17:57 +0200)
commit64556c200ee372130bcebb79f0fb37a9aa46f9c5
treecdfb59cd939d2a3c0116b72f5a517438462cfaf2
parentc026f336b9ff78ba450ff53a67ec2e5cd19dd454
flvdec: Remove AVFMTCTX_NOHEADER if both flags and metadata claim 1 stream

If there is only 1 stream in an flv avformat_find_stream_info will continually
read until probesize is reached. This should stop it reading if the metadata
also claims there to be 1 stream.
(cherry picked from commit bcc531f04a0590732d42da133c11c138e8d08b59)
libavformat/flvdec.c