Browse Source

thp: set duration

tags/n1.1
Piotr Bandurski Paul B Mahol 13 years ago
parent
commit
d0bdcbcb28
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavformat/thp.c

+ 2
- 0
libavformat/thp.c View File

@@ -110,6 +110,8 @@ static int thp_read_header(AVFormatContext *s)
st->codec->width = avio_rb32(pb); st->codec->width = avio_rb32(pb);
st->codec->height = avio_rb32(pb); st->codec->height = avio_rb32(pb);
st->codec->sample_rate = av_q2d(thp->fps); st->codec->sample_rate = av_q2d(thp->fps);
st->nb_frames =
st->duration = thp->framecnt;
thp->vst = st; thp->vst = st;
thp->video_stream_index = st->index; thp->video_stream_index = st->index;




Loading…
Cancel
Save