avio: add a new flag for marking streams seekable by timestamp
This commit is contained in:
@@ -13,6 +13,9 @@ libavutil: 2015-08-28
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2016-xx-xx - xxxxxxx - lavf 57.08.0 - avio.h
|
||||||
|
Add AVIO_SEEKABLE_TIME flag.
|
||||||
|
|
||||||
2016-xx-xx - xxxxxxx - lavu 55.22.0 - pixfmt.h
|
2016-xx-xx - xxxxxxx - lavu 55.22.0 - pixfmt.h
|
||||||
Add AV_PIX_FMT_YUV(420,422,444)P12.
|
Add AV_PIX_FMT_YUV(420,422,444)P12.
|
||||||
|
|
||||||
|
@@ -39,6 +39,11 @@
|
|||||||
*/
|
*/
|
||||||
#define AVIO_SEEKABLE_NORMAL (1 << 0)
|
#define AVIO_SEEKABLE_NORMAL (1 << 0)
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Seeking by timestamp with avio_seek_time() is possible.
|
||||||
|
*/
|
||||||
|
#define AVIO_SEEKABLE_TIME (1 << 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Callback for checking whether to abort blocking functions.
|
* Callback for checking whether to abort blocking functions.
|
||||||
* AVERROR_EXIT is returned in this case by the interrupted
|
* AVERROR_EXIT is returned in this case by the interrupted
|
||||||
|
@@ -846,6 +846,9 @@ int ffio_fdopen(AVIOContext **s, URLContext *h)
|
|||||||
if(h->prot) {
|
if(h->prot) {
|
||||||
(*s)->read_pause = io_read_pause;
|
(*s)->read_pause = io_read_pause;
|
||||||
(*s)->read_seek = io_read_seek;
|
(*s)->read_seek = io_read_seek;
|
||||||
|
|
||||||
|
if (h->prot->url_read_seek)
|
||||||
|
(*s)->seekable |= AVIO_SEEKABLE_TIME;
|
||||||
}
|
}
|
||||||
(*s)->av_class = &ff_avio_class;
|
(*s)->av_class = &ff_avio_class;
|
||||||
return 0;
|
return 0;
|
||||||
|
@@ -30,8 +30,8 @@
|
|||||||
#include "libavutil/version.h"
|
#include "libavutil/version.h"
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_MAJOR 57
|
#define LIBAVFORMAT_VERSION_MAJOR 57
|
||||||
#define LIBAVFORMAT_VERSION_MINOR 7
|
#define LIBAVFORMAT_VERSION_MINOR 8
|
||||||
#define LIBAVFORMAT_VERSION_MICRO 1
|
#define LIBAVFORMAT_VERSION_MICRO 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, \
|
||||||
|
Reference in New Issue
Block a user