avformat/segafilm: set audio stream duration
authorPaul B Mahol <onemda@gmail.com>
Fri, 30 Oct 2015 11:07:44 +0000 (12:07 +0100)
committerPaul B Mahol <onemda@gmail.com>
Mon, 2 Nov 2015 09:53:05 +0000 (10:53 +0100)
Signed-off-by: Paul B Mahol <onemda@gmail.com>
libavformat/segafilm.c

index b4f9b3d..9c346e6 100644 (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;