提交 62ecd363 编写于 作者: N Nicolas George 提交者: Mans Rullgard

Set pkt_pts in avcodec_default_reget_buffer()

This was missed when pkt_pts was first added.
Signed-off-by: NNicolas George <nicolas.george@normalesup.org>
Signed-off-by: NMans Rullgard <mans@mansr.com>
上级 ce41c51b
......@@ -396,6 +396,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){
/* If internal buffer type return the same buffer */
if(pic->type == FF_BUFFER_TYPE_INTERNAL) {
if(s->pkt) pic->pkt_pts= s->pkt->pts;
else pic->pkt_pts= AV_NOPTS_VALUE;
pic->reordered_opaque= s->reordered_opaque;
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册