avformat: do not require a pixel/sample format if there is no decoder
authorJustin Ruggles <justin.ruggles@gmail.com>
Mon, 27 Feb 2012 23:02:10 +0000 (18:02 -0500)
committerJustin Ruggles <justin.ruggles@gmail.com>
Mon, 5 Mar 2012 18:08:18 +0000 (13:08 -0500)
commit8c1d6ac66a4f31008224595aa26781e1746f543b
tree602096b39ca905215a1d0263e9c1c876bd65a683
parenta7fa75684d8fd2551ef87070d9a69349beca7260
avformat: do not require a pixel/sample format if there is no decoder

Also, do not keep trying to find and open a decoder in try_decode_frame() if
we already tried and failed once.

Fixes always searching until max_analyze_duration in
avformat_find_stream_info() when demuxing codecs without a decoder.
libavformat/avformat.h
libavformat/utils.c