diff options
author | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 20:05:56 +0100 |
---|---|---|
committer | Benjamin Franzke <benjaminfranzke@googlemail.com> | 2013-01-29 20:05:56 +0100 |
commit | 6d9c2c7423c15b1af1104fd1c3be7349b069f6c2 (patch) | |
tree | f2558d69e94b1f24f2795282ad5df91cdae8725b /src/video_decode.c | |
parent | d31792311cff5ef0af653b3eb9d9dd87d3b57ac5 (diff) | |
download | advtime-6d9c2c7423c15b1af1104fd1c3be7349b069f6c2.tar.gz advtime-6d9c2c7423c15b1af1104fd1c3be7349b069f6c2.tar.bz2 advtime-6d9c2c7423c15b1af1104fd1c3be7349b069f6c2.zip |
video_decode: Store cur_dts in a video frame
Diffstat (limited to 'src/video_decode.c')
-rw-r--r-- | src/video_decode.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |