mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 03:59:43 +00:00
avcodec/libx264: add a check for the prft AVCodecContext export_side_data flag
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
d005a7cdfd
commit
3d4510384d
@ -322,6 +322,8 @@ static int X264_frame(AVCodecContext *ctx, AVPacket *pkt, const AVFrame *frame,
|
||||
x4->pic.i_pts = frame->pts;
|
||||
|
||||
x4->reordered_opaque[x4->next_reordered_opaque].reordered_opaque = frame->reordered_opaque;
|
||||
x4->reordered_opaque[x4->next_reordered_opaque].wallclock = wallclock;
|
||||
if (ctx->export_side_data & AV_CODEC_EXPORT_DATA_PRFT)
|
||||
x4->reordered_opaque[x4->next_reordered_opaque].wallclock = av_gettime();
|
||||
x4->pic.opaque = &x4->reordered_opaque[x4->next_reordered_opaque];
|
||||
x4->next_reordered_opaque++;
|
||||
|
Loading…
Reference in New Issue
Block a user