[FFmpeg-cvslog] nutenc: only write an index if there are syncpoints
Michael Niedermayer
git at videolan.org
Mon Feb 18 21:01:14 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Mon Feb 18 20:51:54 2013 +0100| [e39821a65e42722e81bf53bb44237f9bf8e4ce07] | committer: Michael Niedermayer
nutenc: only write an index if there are syncpoints
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e39821a65e42722e81bf53bb44237f9bf8e4ce07
---
libavformat/nutenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/nutenc.c b/libavformat/nutenc.c
index 4671152..2d8d265 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);
}
More information about the ffmpeg-cvslog
mailing list