Skip to content

Commit

Permalink
Set duration in Smacker demuxer
Browse files Browse the repository at this point in the history
Originally committed as revision 21538 to svn://svn.ffmpeg.org/ffmpeg/trunk
  • Loading branch information
danielverkamp committed Jan 30, 2010
1 parent 895ab74 commit 2a33c67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libavformat/smacker.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2a33c67

Please sign in to comment.