diff options
author | wm4 <wm4@nowhere> | 2013-11-25 23:08:29 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2013-11-25 23:08:29 +0100 |
commit | 4205bbf243227bf151f2439ecb7772c41ecbfd12 (patch) | |
tree | 141fa5f769a6bd5eb5a3b5095ba9c36e85666cd9 /video/decode/vd.h | |
parent | 51bce52d57467cffba040cf926708befb3d6633b (diff) | |
download | mpv-4205bbf243227bf151f2439ecb7772c41ecbfd12.tar.bz2 mpv-4205bbf243227bf151f2439ecb7772c41ecbfd12.tar.xz |
video: pass PTS as part of demux_packet/AVPacket and mp_image/AVFrame
Instead of passing the PTS as separate field, pass it as part of the
usual data structures. Basically, this removes strange artifacts from
the API. (It's not finished, though: the final decoded PTS goes through
strange paths, and filter_video() finally overwrites the decoded
mp_image's pts field with it.)
We also stop using libavcodec's reordered_opaque fields, and use
AVPacket.pts and AVFrame.pkt_pts. This is slightly unorthodox, because
these pts fields are not "really" opaque anymore, yet we treat them as
such. But the end result should be the same, and reordered_opaque is
marked as partially deprecated (it's not clear whether it's really
deprecated).
Diffstat (limited to 'video/decode/vd.h')
-rw-r--r-- | video/decode/vd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/video/decode/vd.h b/video/decode/vd.h index dd2536ab2a..045914f502 100644 --- a/video/decode/vd.h +++ b/video/decode/vd.h @@ -35,7 +35,7 @@ typedef struct vd_functions void (*uninit)(struct dec_video *vd); int (*control)(struct dec_video *vd, int cmd, void *arg); struct mp_image *(*decode)(struct dec_video *vd, struct demux_packet *pkt, - int flags, double *reordered_pts); + int flags); } vd_functions_t; // NULL terminated array of all drivers |