nutenc: only write an index if there are syncpoints
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
6cd650dbd2
commit
e39821a65e
@ -990,7 +990,7 @@ static int nut_write_trailer(AVFormatContext *s)
|
|||||||
write_headers(s, bc);
|
write_headers(s, bc);
|
||||||
|
|
||||||
ret = avio_open_dyn_buf(&dyn_bc);
|
ret = avio_open_dyn_buf(&dyn_bc);
|
||||||
if (ret >= 0) {
|
if (ret >= 0 && nut->sp_count) {
|
||||||
write_index(nut, dyn_bc);
|
write_index(nut, dyn_bc);
|
||||||
put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE);
|
put_packet(nut, bc, dyn_bc, 1, INDEX_STARTCODE);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user