[FFmpeg-cvslog] r26261 - in trunk: doc/APIchanges libavcodec/avcodec.h libavcodec/utils.c
michael
subversion
Sat Jan 8 00:07:28 CET 2011
Author: michael
Date: Sat Jan 8 00:07:28 2011
New Revision: 26261
Log:
Add pkt_dts to AVFrame, this will in the future allow multithreading decoders
to not mess up dts
Modified:
trunk/doc/APIchanges
trunk/libavcodec/avcodec.h
trunk/libavcodec/utils.c
Modified: trunk/doc/APIchanges
==============================================================================
--- trunk/doc/APIchanges Sat Jan 8 00:07:24 2011 (r26260)
+++ trunk/doc/APIchanges Sat Jan 8 00:07:28 2011 (r26261)
@@ -13,6 +13,10 @@ libavutil: 2009-03-08
API changes, most recent first:
+2011-01-07 - r26261 - lavc 52.106.0 - pkt_dts
+ Add pkt_dts to AVFrame, this will in the future allow multithreading decoders
+ to not mess up dts.
+
2011-01-07 - r26260 - lavc 52.105.0 - pkt_pts
Add pkt_pts to AVFrame.
Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h Sat Jan 8 00:07:24 2011 (r26260)
+++ trunk/libavcodec/avcodec.h Sat Jan 8 00:07:28 2011 (r26261)
@@ -32,7 +32,7 @@
#include "libavutil/cpu.h"
#define LIBAVCODEC_VERSION_MAJOR 52
-#define LIBAVCODEC_VERSION_MINOR 105
+#define LIBAVCODEC_VERSION_MINOR 106
#define LIBAVCODEC_VERSION_MICRO 0
#define LIBAVCODEC_VERSION_INT AV_VERSION_INT(LIBAVCODEC_VERSION_MAJOR, \
@@ -1016,6 +1016,13 @@ typedef struct AVPanScan{
* - decoding: Read by user.\
*/\
int64_t pkt_pts;\
+\
+ /**\
+ * dts from the last AVPacket that has been input into the decoder\
+ * - encoding: unused\
+ * - decoding: Read by user.\
+ */\
+ int64_t pkt_dts;\
#define FF_QSCALE_TYPE_MPEG1 0
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c Sat Jan 8 00:07:24 2011 (r26260)
+++ trunk/libavcodec/utils.c Sat Jan 8 00:07:28 2011 (r26261)
@@ -639,6 +639,8 @@ int attribute_align_arg avcodec_decode_v
emms_c(); //needed to avoid an emms_c() call before every return;
+ picture->pkt_dts= avpkt->dts;
+
if (*got_picture_ptr)
avctx->frame_number++;
}else
More information about the ffmpeg-cvslog
mailing list