Commit 9cba2cb3 authored by daniel's avatar daniel

Set duration in Smacker demuxer



git-svn-id: file:///var/local/repositories/ffmpeg/trunk@21538 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 437cb4b5
...@@ -169,6 +169,7 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -169,6 +169,7 @@ static int smacker_read_header(AVFormatContext *s, AVFormatParameters *ap)
tbase = 100000; tbase = 100000;
av_reduce(&tbase, &smk->pts_inc, tbase, smk->pts_inc, (1UL<<31)-1); av_reduce(&tbase, &smk->pts_inc, tbase, smk->pts_inc, (1UL<<31)-1);
av_set_pts_info(st, 33, smk->pts_inc, tbase); av_set_pts_info(st, 33, smk->pts_inc, tbase);
st->duration = smk->frames;
/* handle possible audio streams */ /* handle possible audio streams */
for(i = 0; i < 7; i++) { for(i = 0; i < 7; i++) {
smk->indexes[i] = -1; smk->indexes[i] = -1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment