mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-23 23:21:06 +01:00
avformat/matroskaenc: Avoid "for (int i" syntax for better compatibility
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5e8e121fcc
commit
ace8376653
1 changed files with 2 additions and 1 deletions
|
|
@ -2025,7 +2025,8 @@ static int mkv_write_trailer(AVFormatContext *s)
|
|||
|
||||
// update stream durations
|
||||
if (mkv->stream_durations) {
|
||||
for (int i = 0; i < s->nb_streams; ++i) {
|
||||
int i;
|
||||
for (i = 0; i < s->nb_streams; ++i) {
|
||||
AVStream *st = s->streams[i];
|
||||
double duration_sec = mkv->stream_durations[i] * av_q2d(st->time_base);
|
||||
char duration_string[20] = "";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue