aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorDaniel Verkamp <daniel@drv.nu>2010-01-30 10:37:52 +0000
committerDaniel Verkamp <daniel@drv.nu>2010-01-30 10:37:52 +0000
commit2a33c673b1c2baf8695c9eb774430ff69c564e52 (patch)
tree550fbae2d45e4d5e19b4b236ce400bbbe71b31bd /libavformat
parent895ab7489b6f623cd2250bc197dfe96d9d4eb63a (diff)
downloadffmpeg-2a33c673b1c2baf8695c9eb774430ff69c564e52.tar.gz
Set duration in Smacker demuxer
Originally committed as revision 21538 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/smacker.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/smacker.c b/libavformat/smacker.c
index 7585ff1a9a..59fed35d3f 100644
--- a/libavformat/smacker.c
+++ b/libavformat/smacker.c
@@ -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;