Signed-off-by: Stephan Holljes <klaxa1...@googlemail.com> --- segment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/segment.c b/segment.c index 6c74b72..2dba287 100644 --- a/segment.c +++ b/segment.c @@ -28,7 +28,7 @@ void segment_save(struct Segment *seg, const char *filename) { AVFormatContext *ofmt_ctx = NULL; int ret; - + avformat_alloc_output_context2(&ofmt_ctx, NULL, NULL, filename); if (!ofmt_ctx) { av_log(NULL, AV_LOG_ERROR, "Could not allocate output to save Segment %d.\n", seg->id); @@ -40,7 +40,7 @@ void segment_save(struct Segment *seg, const char *filename) "Could not open output io context to save Segment %d: %s.\n", seg->id, av_err2str(ret)); return; } - + avio_write(ofmt_ctx->pb, seg->buf, seg->size); avio_flush(ofmt_ctx->pb); avio_close(ofmt_ctx->pb); -- 2.18.0 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel