avformat/dashenc: write the styp box when the first frame of a segment is ready
authorJames Almer <jamrial@gmail.com>
Tue, 18 Feb 2020 04:14:15 +0000 (01:14 -0300)
committerJames Almer <jamrial@gmail.com>
Sun, 23 Feb 2020 02:19:07 +0000 (23:19 -0300)
commit7098989e708396c542a5d10176e96c56e8b704b6
tree1d023c04906aaa2642efacc397136835fa24999c
parenta0faf0db4f9f85ce2b8e00660c4fd884a347ca19
avformat/dashenc: write the styp box when the first frame of a segment is ready

This ensures it's written at the beginning of a segment in non streaming mode
when segment duration differs from fragment duration.

Signed-off-by: James Almer <jamrial@gmail.com>
libavformat/dashenc.c