Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
avformatdecoder.cpp: remove '#include "libavformat/internal.h"'
refs: #428 ff_read_frame_flush() is an internal FFmpeg function. However, in libavformat/utils.c: int avformat_flush(AVFormatContext *s) { ff_read_frame_flush(s); return 0; } avformat_flush() is exactly identical and is a public function, so use it instead. StreamHasRequiredParameters(): The audio check requiring the internal struct to be defined was disabled. This should have no effect since these checks are *all* already done via avformat_find_stream_info() in FindStreamInfo(), which should return < 0 if these checks fail. This copy of an internal FFmpeg function feels unnecessary and like a bad idea since FFmpeg already checks this itself.
- Loading branch information