Signed-off-by: Stephan Holljes <[email protected]>
---
segment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/segment.c b/segment.c
index 8b76510..9ec144f 100644
--- a/segment.c
+++ b/segment.c
@@ -114,9 +114,9 @@ void segment_init(struct Segment **seg_p, AVFormatContext
*fmt)
int i;
AVStream *in_stream, *out_stream;
struct Segment *seg = av_malloc(sizeof(struct Segment));
+ *seg_p = NULL;
if (!seg) {
av_log(fmt, AV_LOG_ERROR, "Could not allocate segment.\n");
- *seg_p = NULL;
return;
}
--
2.18.0
_______________________________________________
ffmpeg-devel mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel