avformat: add avformat_flush()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
wm4
2014-09-30 18:46:49 +02:00
committed by Michael Niedermayer
parent 83808ee7e9
commit cca44764b9
4 changed files with 28 additions and 2 deletions

View File

@@ -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;
}
/*******************************************************/
/**