mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2025-02-19 19:42:55 +00:00
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> (cherry picked from commit 62ecd3635a1329c49bc3b97ba84ad4d53d847163)
This commit is contained in:
parent
d0d8a9b138
commit
cf96cce728
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user