mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat: add a stream event flag for new packets
This commit is contained in:
parent
201b1246e2
commit
f95d9510ff
@ -15,6 +15,9 @@ libavutil: 2017-10-21
|
|||||||
|
|
||||||
API changes, most recent first:
|
API changes, most recent first:
|
||||||
|
|
||||||
|
2020-xx-xx - xxxxxxxxxx - lavf 58.64.100 - avformat.h
|
||||||
|
Add AVSTREAM_EVENT_FLAG_NEW_PACKETS.
|
||||||
|
|
||||||
2020-xx-xx - xxxxxxxxxx - lavu 56.60.100 - buffer.h
|
2020-xx-xx - xxxxxxxxxx - lavu 56.60.100 - buffer.h
|
||||||
Add a av_buffer_replace() convenience function.
|
Add a av_buffer_replace() convenience function.
|
||||||
|
|
||||||
|
@ -995,6 +995,12 @@ typedef struct AVStream {
|
|||||||
* it into the file
|
* it into the file
|
||||||
*/
|
*/
|
||||||
#define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
|
#define AVSTREAM_EVENT_FLAG_METADATA_UPDATED 0x0001
|
||||||
|
/**
|
||||||
|
* - demuxing: new packets for this stream were read from the file. This
|
||||||
|
* event is informational only and does not guarantee that new packets
|
||||||
|
* for this stream will necessarily be returned from av_read_frame().
|
||||||
|
*/
|
||||||
|
#define AVSTREAM_EVENT_FLAG_NEW_PACKETS (1 << 1)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Real base framerate of the stream.
|
* Real base framerate of the stream.
|
||||||
|
@ -1533,6 +1533,8 @@ static int read_frame_internal(AVFormatContext *s, AVPacket *pkt)
|
|||||||
ret = 0;
|
ret = 0;
|
||||||
st = s->streams[pkt->stream_index];
|
st = s->streams[pkt->stream_index];
|
||||||
|
|
||||||
|
st->event_flags |= AVSTREAM_EVENT_FLAG_NEW_PACKETS;
|
||||||
|
|
||||||
/* update context if required */
|
/* update context if required */
|
||||||
if (st->internal->need_context_update) {
|
if (st->internal->need_context_update) {
|
||||||
if (avcodec_is_open(st->internal->avctx)) {
|
if (avcodec_is_open(st->internal->avctx)) {
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
|
// Major bumping may affect Ticket5467, 5421, 5451(compatibility with Chromium)
|
||||||
// Also please add any ticket numbers that you believe might be affected here
|
// Also please add any ticket numbers that you believe might be affected here
|
||||||
#define LIBAVFORMAT_VERSION_MAJOR 58
|
#define LIBAVFORMAT_VERSION_MAJOR 58
|
||||||
#define LIBAVFORMAT_VERSION_MINOR 63
|
#define LIBAVFORMAT_VERSION_MINOR 64
|
||||||
#define LIBAVFORMAT_VERSION_MICRO 100
|
#define LIBAVFORMAT_VERSION_MICRO 100
|
||||||
|
|
||||||
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
|
||||||
|
Loading…
Reference in New Issue
Block a user