projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
895ab74
)
Set duration in Smacker demuxer
author
Daniel Verkamp
<daniel@drv.nu>
Sat, 30 Jan 2010 10:37:52 +0000
(10:37 +0000)
committer
Daniel Verkamp
<daniel@drv.nu>
Sat, 30 Jan 2010 10:37:52 +0000
(10:37 +0000)
Originally committed as revision 21538 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/smacker.c
patch
|
blob
|
history
diff --git
a/libavformat/smacker.c
b/libavformat/smacker.c
index
7585ff1
..
59fed35
100644
(file)
--- 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;