Mercurial > libavformat.hg
changeset 5608:cdc913460d61 libavformat
Set duration in Smacker demuxer
author | daniel |
---|---|
date | Sat, 30 Jan 2010 10:37:52 +0000 |
parents | 9143e8efec99 |
children | 26c471598b2f |
files | smacker.c |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/smacker.c Sat Jan 30 10:31:10 2010 +0000 +++ b/smacker.c Sat Jan 30 10:37:52 2010 +0000 @@ -169,6 +169,7 @@ tbase = 100000; av_reduce(&tbase, &smk->pts_inc, tbase, smk->pts_inc, (1UL<<31)-1); av_set_pts_info(st, 33, smk->pts_inc, tbase); + st->duration = smk->frames; /* handle possible audio streams */ for(i = 0; i < 7; i++) { smk->indexes[i] = -1;