mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 02:20:56 +01:00
thp: set duration
This commit is contained in:
parent
013b700771
commit
d0bdcbcb28
1 changed files with 2 additions and 0 deletions
|
|
@ -110,6 +110,8 @@ static int thp_read_header(AVFormatContext *s)
|
|||
st->codec->width = avio_rb32(pb);
|
||||
st->codec->height = avio_rb32(pb);
|
||||
st->codec->sample_rate = av_q2d(thp->fps);
|
||||
st->nb_frames =
|
||||
st->duration = thp->framecnt;
|
||||
thp->vst = st;
|
||||
thp->video_stream_index = st->index;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue