mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avformat/imx: set video stream duration
This commit is contained in:
parent
34c805c0fe
commit
e937457b7b
@ -66,6 +66,7 @@ static int simbiosis_imx_read_header(AVFormatContext *s)
|
|||||||
vst->codecpar->format = AV_PIX_FMT_PAL8;
|
vst->codecpar->format = AV_PIX_FMT_PAL8;
|
||||||
vst->codecpar->codec_id = AV_CODEC_ID_SIMBIOSIS_IMX;
|
vst->codecpar->codec_id = AV_CODEC_ID_SIMBIOSIS_IMX;
|
||||||
vst->start_time = 0;
|
vst->start_time = 0;
|
||||||
|
vst->duration =
|
||||||
vst->nb_frames = avio_rl32(pb);
|
vst->nb_frames = avio_rl32(pb);
|
||||||
rate = avio_rl16(pb);
|
rate = avio_rl16(pb);
|
||||||
avio_skip(pb, 12);
|
avio_skip(pb, 12);
|
||||||
|
Loading…
Reference in New Issue
Block a user