[FFmpeg-devel] [PATCH 17/22] ffserver.c: Don't cast return value of av_malloc()

Stephan Holljes klaxa1337 at googlemail.com
Fri Jun 1 01:24:10 EEST 2018


Signed-off-by: Stephan Holljes <klaxa1337 at googlemail.com>
---
 ffserver.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ffserver.c b/ffserver.c
index fd8cadd..8a24397 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -222,7 +222,7 @@ void write_segment(struct Client *c)
             return;
         }
         
-        avio_buffer = (unsigned char*) av_malloc(AV_BUFSIZE);
+        avio_buffer = av_malloc(AV_BUFSIZE);
         if (!avio_buffer) {
             av_log(fmt_ctx, AV_LOG_ERROR, "Could not allocate avio_buffer\n");
             avformat_free_context(fmt_ctx);
-- 
2.16.2



More information about the ffmpeg-devel mailing list