diff options
author | Justin Ruggles <justin.ruggles@gmail.com> | 2012-02-28 03:02:10 +0400 |
---|---|---|
committer | Justin Ruggles <justin.ruggles@gmail.com> | 2012-03-05 22:08:18 +0400 |
commit | 8c1d6ac66a4f31008224595aa26781e1746f543b (patch) | |
tree | 602096b39ca905215a1d0263e9c1c876bd65a683 /libavformat/avformat.h | |
parent | a7fa75684d8fd2551ef87070d9a69349beca7260 (diff) |
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.
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r-- | libavformat/avformat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h index 9b40eee395..e0b3b3f8a3 100644 --- a/libavformat/avformat.h +++ b/libavformat/avformat.h @@ -637,6 +637,7 @@ typedef struct AVStream { double duration_error[MAX_STD_TIMEBASES]; int64_t codec_info_duration; int nb_decoded_frames; + int found_decoder; } *info; int pts_wrap_bits; /**< number of bits in pts (used for wrapping control) */ |