diff options
author | wm4 <nfxjfg@googlemail.com> | 2014-09-30 18:46:49 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2015-03-05 00:09:26 +0100 |
commit | cca44764b9def05d90d051b24a84369f9891a460 (patch) | |
tree | 30b6187baa1ff54514b48b4ffae443646fac768b /libavformat/utils.c | |
parent | 83808ee7e9e89b0c83d5ecd94b35952c44716b68 (diff) | |
download | ffmpeg-cca44764b9def05d90d051b24a84369f9891a460.tar.gz |
avformat: add avformat_flush()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index 917f8ceaf0..17ae300a8f 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -2201,6 +2201,12 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts, return -1; //unreachable } +int avformat_flush(AVFormatContext *s) +{ + ff_read_frame_flush(s); + return 0; +} + /*******************************************************/ /** |