aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/utils.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2011-01-07 23:07:28 +0000
committerMichael Niedermayer <michaelni@gmx.at>2011-01-07 23:07:28 +0000
commit1919feafb1780c32864f63942d2b14f99c992f88 (patch)
tree5ddaf52348b346cd72402e724af6f63984b0b00d /libavcodec/utils.c
parent393cbb963b83ecd98336502b1201f16f5eaed979 (diff)
downloadffmpeg-1919feafb1780c32864f63942d2b14f99c992f88.tar.gz
Add pkt_dts to AVFrame, this will in the future allow multithreading decoders
to not mess up dts Originally committed as revision 26261 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/utils.c')
-rw-r--r--libavcodec/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index f6e1898ad1..0295147481 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -639,6 +639,8 @@ int attribute_align_arg avcodec_decode_video2(AVCodecContext *avctx, AVFrame *pi
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