summaryrefslogtreecommitdiff
path: root/libavformat/mxfdec.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2016-11-19 11:09:24 -0800
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2018-10-12 12:28:22 -0700
commit9b7ab5795341a33c3ef9a168b9ae672e5d8af5a3 (patch)
treef6b778ec4d020bd23954ac2927bed8639df4723e /libavformat/mxfdec.c
parentbb89109a0a29d51cb207352834f6b92784c1700d (diff)
lavf/mxfenc: support creating s436m data tracks
Diffstat (limited to 'libavformat/mxfdec.c')
-rw-r--r--libavformat/mxfdec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavformat/mxfdec.c b/libavformat/mxfdec.c
index 134f27784b..e4ec10d3e6 100644
--- a/libavformat/mxfdec.c
+++ b/libavformat/mxfdec.c
@@ -3311,6 +3311,8 @@ static int mxf_set_pts(MXFContext *mxf, AVStream *st, AVPacket *pkt)
if (ret < 0)
return ret;
} else if (track) {
+ pkt->dts = pkt->pts = track->sample_count;
+ pkt->duration = 1;
track->sample_count++;
}
return 0;