Commit 0cca6ab8 authored by michael's avatar michael

Add AVPacket.convergence_duration.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@15179 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 90fb0258
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#define AVFORMAT_AVFORMAT_H #define AVFORMAT_AVFORMAT_H
#define LIBAVFORMAT_VERSION_MAJOR 52 #define LIBAVFORMAT_VERSION_MAJOR 52
#define LIBAVFORMAT_VERSION_MINOR 21 #define LIBAVFORMAT_VERSION_MINOR 22
#define LIBAVFORMAT_VERSION_MICRO 0 #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, \
...@@ -78,6 +78,21 @@ typedef struct AVPacket { ...@@ -78,6 +78,21 @@ typedef struct AVPacket {
void (*destruct)(struct AVPacket *); void (*destruct)(struct AVPacket *);
void *priv; void *priv;
int64_t pos; ///< byte position in stream, -1 if unknown int64_t pos; ///< byte position in stream, -1 if unknown
/**
* This is the time difference in stream timebase units from the pts at which
* the output from the decoder has converged independent from the availability
* of previous frames (that is the frames are virtually identical no matter
* if decoding started from the very first frame or from this keyframe).
* is AV_NOPTS_VALUE if unknown.
*
* The purpose of this field is to allow seeking in streams that have no
* keyframes in the conventional sense. It corresponds to the
* recovery point SEI in H.264 and match_time_delta in nut. It also is
* essential for some types of subtitle streams to ensure that all
* subtitles are correctly displayed after seeking.
*/
int64_t convergence_duration;
} AVPacket; } AVPacket;
#define PKT_FLAG_KEY 0x0001 #define PKT_FLAG_KEY 0x0001
......
...@@ -251,6 +251,7 @@ void av_init_packet(AVPacket *pkt) ...@@ -251,6 +251,7 @@ void av_init_packet(AVPacket *pkt)
pkt->dts = AV_NOPTS_VALUE; pkt->dts = AV_NOPTS_VALUE;
pkt->pos = -1; pkt->pos = -1;
pkt->duration = 0; pkt->duration = 0;
pkt->convergence_duration = 0;
pkt->flags = 0; pkt->flags = 0;
pkt->stream_index = 0; pkt->stream_index = 0;
pkt->destruct= av_destruct_packet_nofree; pkt->destruct= av_destruct_packet_nofree;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment