Set duration in Smacker demuxer

Originally committed as revision 21538 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Daniel Verkamp 2010-01-30 10:37:52 +00:00
parent 895ab7489b
commit 2a33c673b1
1 changed files with 1 additions and 0 deletions

View File

@ -169,6 +169,7 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap)
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;