diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-18 20:51:54 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-18 20:51:54 +0100 |
commit | e39821a65e42722e81bf53bb44237f9bf8e4ce07 (patch) | |
tree | f106788b9bf5989d09700ffc52549ef4f8e8bf16 /libavformat/nutenc.c | |
parent | 6cd650dbd2bea006e1c4b70456f6d9eb7f638922 (diff) | |
download | ffmpeg-e39821a65e42722e81bf53bb44237f9bf8e4ce07.tar.gz |
nutenc: only write an index if there are syncpoints
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/nutenc.c')
-rw-r--r-- | libavformat/nutenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c index 46711528a0..2d8d2652ee 100644 --- a/libavformat/nutenc.c +++ b/libavformat/nutenc.c @@ -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); } |