Browse Source

avformat/segafilm: set audio stream duration

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n3.0
Paul B Mahol 10 years ago
parent
commit
0cb09b0511
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      libavformat/segafilm.c

+ 3
- 0
libavformat/segafilm.c View File

@@ -247,6 +247,9 @@ static int film_read_header(AVFormatContext *s)
}
}

if (film->audio_type)
s->streams[film->audio_stream_index]->duration = audio_frame_counter;

film->current_sample = 0;

return 0;


Loading…
Cancel
Save