Commit 6b2a9d0d authored by michael's avatar michael

Provide a simpler way for the user to reorder her timestamps.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14871 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7633297d
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
#include "libavutil/avutil.h" #include "libavutil/avutil.h"
#define LIBAVCODEC_VERSION_MAJOR 51 #define LIBAVCODEC_VERSION_MAJOR 51
#define LIBAVCODEC_VERSION_MINOR 67 #define LIBAVCODEC_VERSION_MINOR 68
#define LIBAVCODEC_VERSION_MICRO 0 #define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \ #define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
...@@ -767,7 +767,16 @@ typedef struct AVPanScan{ ...@@ -767,7 +767,16 @@ typedef struct AVPanScan{
* - encoding: Set by user.\ * - encoding: Set by user.\
* - decoding: Set by libavcodec.\ * - decoding: Set by libavcodec.\
*/\ */\
int8_t *ref_index[2]; int8_t *ref_index[2];\
\
/**\
* reordered opaque 64bit number (generally a PTS) from AVCodecContext.reordered_opaque\
* output in AVFrame.reordered_opaque\
* - encoding: unused\
* - decoding: Read by user.\
*/\
int64_t reordered_opaque;\
#define FF_QSCALE_TYPE_MPEG1 0 #define FF_QSCALE_TYPE_MPEG1 0
#define FF_QSCALE_TYPE_MPEG2 1 #define FF_QSCALE_TYPE_MPEG2 1
...@@ -2230,6 +2239,14 @@ typedef struct AVCodecContext { ...@@ -2230,6 +2239,14 @@ typedef struct AVCodecContext {
* - decoding: Set by user. * - decoding: Set by user.
*/ */
float drc_scale; float drc_scale;
/**
* opaque 64bit number (generally a PTS) that will be reordered and
* output in AVFrame.reordered_opaque
* - encoding: unused
* - decoding: Set by user.
*/
int64_t reordered_opaque;
} AVCodecContext; } AVCodecContext;
/** /**
......
...@@ -285,6 +285,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){ ...@@ -285,6 +285,8 @@ int avcodec_default_get_buffer(AVCodecContext *s, AVFrame *pic){
} }
s->internal_buffer_count++; s->internal_buffer_count++;
pic->reordered_opaque= s->reordered_opaque;
if(s->debug&FF_DEBUG_BUFFERS) if(s->debug&FF_DEBUG_BUFFERS)
av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count); av_log(s, AV_LOG_DEBUG, "default_get_buffer called on pic %p, %d buffers used\n", pic, s->internal_buffer_count);
......
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