Set pkt_pts in avcodec_default_reget_buffer()

This was missed when pkt_pts was first added.

Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
Nicolas George 2011-02-02 21:54:14 +01:00 committed by Mans Rullgard
parent ce41c51b0c
commit 62ecd3635a
1 changed files with 2 additions and 0 deletions

View File

@ -396,6 +396,8 @@ int avcodec_default_reget_buffer(AVCodecContext *s, AVFrame *pic){
/* If internal buffer type return the same buffer */ /* If internal buffer type return the same buffer */
if(pic->type == FF_BUFFER_TYPE_INTERNAL) { 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; pic->reordered_opaque= s->reordered_opaque;
return 0; return 0;
} }