Commit a06b129a authored by Rafaël Carré's avatar Rafaël Carré Committed by Rémi Denis-Courmont

avcodec: set pkt_pts in old libavcodec versions

This is only meaningful in custom get_buffer callback that we use for direct rendering
Close #8711
Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 05e1f728
......@@ -989,6 +989,9 @@ static int ffmpeg_GetFrameBuf( struct AVCodecContext *p_context,
/* */
p_ff_pic->opaque = NULL;
#if ! LIBAVCODEC_VERSION_CHECK(54, 34, 0, 79, 101)
p_ff_pic->pkt_pts = p_context->pkt ? p_context->pkt->pts : AV_NOPTS_VALUE;
#endif
#if LIBAVCODEC_VERSION_MAJOR < 54
p_ff_pic->age = 256*256*256*64;
#endif
......
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