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
This commit is contained in:
Michael Niedermayer
2011-01-07 23:07:28 +00:00
parent 393cbb963b
commit 1919feafb1
3 changed files with 14 additions and 1 deletions

View File

@ -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