Commit e39821a6 authored by Michael Niedermayer's avatar Michael Niedermayer

nutenc: only write an index if there are syncpoints

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 6cd650db
......@@ -990,7 +990,7 @@ static int nut_write_trailer(AVFormatContext *s)
write_headers(s, bc);
ret = avio_open_dyn_buf(&dyn_bc);
if (ret >= 0) {
if (ret >= 0 && nut->sp_count) {
write_index(nut, dyn_bc);
put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment