Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
cca44764
Commit
cca44764
authored
Sep 30, 2014
by
wm4
Committed by
Michael Niedermayer
Mar 04, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: add avformat_flush()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
83808ee7
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
2 deletions
+28
-2
APIchanges
doc/APIchanges
+3
-0
avformat.h
libavformat/avformat.h
+17
-0
utils.c
libavformat/utils.c
+6
-0
version.h
libavformat/version.h
+2
-2
No files found.
doc/APIchanges
View file @
cca44764
...
@@ -15,6 +15,9 @@ libavutil: 2014-08-09
...
@@ -15,6 +15,9 @@ libavutil: 2014-08-09
API changes, most recent first:
API changes, most recent first:
2015-03-04 - xxxxxxx - lavf 56.25.100
Add avformat_flush()
2015-03-xx - xxxxxxx - lavf 56.24.100
2015-03-xx - xxxxxxx - lavf 56.24.100
Add avio_put_str16be()
Add avio_put_str16be()
...
...
libavformat/avformat.h
View file @
cca44764
...
@@ -2136,6 +2136,23 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp,
...
@@ -2136,6 +2136,23 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp,
*/
*/
int
avformat_seek_file
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
);
int
avformat_seek_file
(
AVFormatContext
*
s
,
int
stream_index
,
int64_t
min_ts
,
int64_t
ts
,
int64_t
max_ts
,
int
flags
);
/**
* Discard all internally buffered data. This can be useful when dealing with
* discontinuities in the byte stream. Generally works only with headerless
* formats.
*
* The set of streams, the detected duration, stream parameters and codecs do
* not change when calling this function. If you want a complete reset, it's
* better to open a new AVFormatContext.
*
* This does not flush the AVIOContext (s->pb). If necessary, call
* avio_flush(s->pb) before calling this function.
*
* @param s media file handle
* @return >=0 on success, error code otherwise
*/
int
avformat_flush
(
AVFormatContext
*
s
);
/**
/**
* Start playing a network-based stream (e.g. RTSP stream) at the
* Start playing a network-based stream (e.g. RTSP stream) at the
* current position.
* current position.
...
...
libavformat/utils.c
View file @
cca44764
...
@@ -2201,6 +2201,12 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts,
...
@@ -2201,6 +2201,12 @@ int avformat_seek_file(AVFormatContext *s, int stream_index, int64_t min_ts,
return
-
1
;
//unreachable
return
-
1
;
//unreachable
}
}
int
avformat_flush
(
AVFormatContext
*
s
)
{
ff_read_frame_flush
(
s
);
return
0
;
}
/*******************************************************/
/*******************************************************/
/**
/**
...
...
libavformat/version.h
View file @
cca44764
...
@@ -30,8 +30,8 @@
...
@@ -30,8 +30,8 @@
#include "libavutil/version.h"
#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 56
#define LIBAVFORMAT_VERSION_MAJOR 56
#define LIBAVFORMAT_VERSION_MINOR 2
4
#define LIBAVFORMAT_VERSION_MINOR 2
5
#define LIBAVFORMAT_VERSION_MICRO 10
1
#define LIBAVFORMAT_VERSION_MICRO 10
0
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
LIBAVFORMAT_VERSION_MINOR, \
LIBAVFORMAT_VERSION_MINOR, \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment