From 6d9c2c7423c15b1af1104fd1c3be7349b069f6c2 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 29 Jan 2013 20:05:56 +0100 Subject: video_decode: Store cur_dts in a video frame --- src/video_decode.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/video_decode.c') diff --git a/src/video_decode.c b/src/video_decode.c index defb6d7..6e3500a 100644 --- a/src/video_decode.c +++ b/src/video_decode.c @@ -152,6 +152,7 @@ video_decode_get_frame(struct video_decode *vd, struct video_frame **frame) f->base.width = vd->codec_ctx->width; f->base.height = vd->codec_ctx->height; f->base.stride = f->frame->linesize[0]; + f->base.dts = vd->fmt_ctx->streams[vd->stream]->cur_dts; if (*frame == NULL) *frame = &f->base; -- cgit