avformat/segafilm: set audio stream duration

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2015-10-30 12:07:44 +01:00
parent e6cccf9daa
commit 0cb09b0511

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;