mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
Merge remote-tracking branch 'qatar/master'
* qatar/master: lavc: set AVFrame pkt_pts and reordered_opaque in reget_buffer Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
707a07f3c2
@ -1006,8 +1006,11 @@ static int reget_buffer_internal(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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user