[vlc-commits] avcodec: set pkt_pts in old libavcodec versions
Rafaël Carré
git at videolan.org
Tue Jun 4 20:05:19 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon May 27 09:19:03 2013 +0200| [a06b129a42a651845b139987edfd6027310eab1f] | committer: 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: Rémi Denis-Courmont <remi at remlab.net>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a06b129a42a651845b139987edfd6027310eab1f
---
modules/codec/avcodec/video.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 3a967b8..ecba97e 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -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
More information about the vlc-commits
mailing list