[FFmpeg-devel] [PATCH 07/17] segment.c: Don't cast return value of av_malloc()
Stephan Holljes
klaxa1337 at googlemail.com
Thu Jun 28 03:51:07 EEST 2018
Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
---
segment.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/segment.c b/segment.c
index 2dba287..8b76510 100644
--- a/segment.c
+++ b/segment.c
@@ -113,7 +113,7 @@ void segment_init(struct Segment **seg_p, AVFormatContext *fmt)
int ret;
int i;
AVStream *in_stream, *out_stream;
- struct Segment *seg = (struct Segment*) av_malloc(sizeof(struct Segment));
+ struct Segment *seg = av_malloc(sizeof(struct Segment));
if (!seg) {
av_log(fmt, AV_LOG_ERROR, "Could not allocate segment.\n");
*seg_p = NULL;
--
2.18.0
More information about the ffmpeg-devel
mailing list