[vlc-commits] codec: avcodec: ifdef deprecated pkt_pts

Francois Cartegnie git at videolan.org
Fri Oct 7 16:33:30 CEST 2016


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Oct  6 17:36:02 2016 +0200| [a7d79e043719fa9e5315265e9b8868d5958989c2] | committer: Francois Cartegnie

codec: avcodec: ifdef deprecated pkt_pts

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=a7d79e043719fa9e5315265e9b8868d5958989c2
---

 modules/codec/avcodec/video.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/codec/avcodec/video.c b/modules/codec/avcodec/video.c
index 7aa1872..a121e6a 100644
--- a/modules/codec/avcodec/video.c
+++ b/modules/codec/avcodec/video.c
@@ -894,7 +894,11 @@ static picture_t *DecodeVideo( decoder_t *p_dec, block_t **pp_block )
         }
 
         /* Compute the PTS */
+#ifdef FF_API_PKT_PTS
+        mtime_t i_pts = frame->pts;
+#else
         mtime_t i_pts = frame->pkt_pts;
+#endif
         if (i_pts == AV_NOPTS_VALUE )
             i_pts = frame->pkt_dts;
 



More information about the vlc-commits mailing list