[FFmpeg-cvslog] lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer
John Stebbins
git at videolan.org
Tue Feb 11 23:37:22 CET 2014
ffmpeg | branch: master | John Stebbins <stebbins at jetheaddev.com> | Mon Feb 10 08:53:20 2014 -0700| [52771346dc7872e39c98508584d430567d3e8f31] | committer: Anton Khirnov
lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer
Signed-off-by: Anton Khirnov <anton at khirnov.net>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=52771346dc7872e39c98508584d430567d3e8f31
---
libavcodec/utils.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index 46f339f..b2b11ef 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -762,8 +762,11 @@ int ff_reget_buffer(AVCodecContext *avctx, AVFrame *frame)
if (!frame->data[0])
return ff_get_buffer(avctx, frame, AV_GET_BUFFER_FLAG_REF);
- if (av_frame_is_writable(frame))
+ if (av_frame_is_writable(frame)) {
+ frame->pkt_pts = avctx->internal->pkt ? avctx->internal->pkt->pts : AV_NOPTS_VALUE;
+ frame->reordered_opaque = avctx->reordered_opaque;
return 0;
+ }
av_frame_move_ref(&tmp, frame);
More information about the ffmpeg-cvslog
mailing list