Commit 2fece1e4 authored by Hendrik Leppkes's avatar Hendrik Leppkes

Merge commit 'f6f32fc9'

* commit 'f6f32fc9':
  qsvenc: set the timestamp for PIX_FMT_QSV frames as well
Merged-by: 's avatarHendrik Leppkes <h.leppkes@gmail.com>
parents 760dbdd3 f6f32fc9
......@@ -385,10 +385,7 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
return ret;
qf->surface = (mfxFrameSurface1*)qf->frame->data[3];
*surface = qf->surface;
return 0;
}
} else {
/* make a copy if the input is not padded as libmfx requires */
if ( frame->height & (q->height_align - 1) ||
frame->linesize[0] & (q->width_align - 1)) {
......@@ -428,9 +425,11 @@ static int submit_frame(QSVEncContext *q, const AVFrame *frame,
qf->surface_internal.Data.PitchLow = qf->frame->linesize[0];
qf->surface_internal.Data.Y = qf->frame->data[0];
qf->surface_internal.Data.UV = qf->frame->data[1];
qf->surface_internal.Data.TimeStamp = av_rescale_q(frame->pts, q->avctx->time_base, (AVRational){1, 90000});
qf->surface = &qf->surface_internal;
}
qf->surface->Data.TimeStamp = av_rescale_q(frame->pts, q->avctx->time_base, (AVRational){1, 90000});
*surface = qf->surface;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment