mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-04-25 08:56:59 +08:00
avformat: add AVInputFormat flag AVFMT_NO_BYTE_SEEK.
This will prevent seeking by bytes for formats that cannot handle this.
This commit is contained in:
@@ -274,6 +274,7 @@ typedef struct AVFormatParameters {
|
||||
#define AVFMT_NOSTREAMS 0x1000 /**< Format does not require any streams */
|
||||
#define AVFMT_NOBINSEARCH 0x2000 /**< Format does not allow to fallback to binary search via read_timestamp */
|
||||
#define AVFMT_NOGENSEARCH 0x4000 /**< Format does not allow to fallback to generic search */
|
||||
#define AVFMT_NO_BYTE_SEEK 0x8000 /**< Format does not allow seeking by bytes */
|
||||
|
||||
typedef struct AVOutputFormat {
|
||||
const char *name;
|
||||
@@ -408,7 +409,7 @@ typedef struct AVInputFormat {
|
||||
/**
|
||||
* Can use flags: AVFMT_NOFILE, AVFMT_NEEDNUMBER, AVFMT_SHOW_IDS,
|
||||
* AVFMT_GENERIC_INDEX, AVFMT_TS_DISCONT, AVFMT_NOBINSEARCH,
|
||||
* AVFMT_NOGENSEARCH.
|
||||
* AVFMT_NOGENSEARCH, AVFMT_NO_BYTE_SEEK.
|
||||
*/
|
||||
int flags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user