Signed-off-by: Stephan Holljes <klaxa1...@googlemail.com> --- ffserver.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/ffserver.c b/ffserver.c index 50d61e5..c6e8516 100644 --- a/ffserver.c +++ b/ffserver.c @@ -210,7 +210,7 @@ void write_segment(struct Client *c) struct SegmentReadInfo info; unsigned char *avio_buffer; - av_fifo_generic_peek(c->buffer, &seg, sizeof(struct Segment*), NULL); + av_fifo_generic_peek(c->buffer, &seg, sizeof(seg), NULL); pthread_mutex_unlock(&c->buffer_lock); c->current_segment_id = seg->id; info.buf = seg->buf; @@ -288,7 +288,7 @@ void write_segment(struct Client *c) avformat_close_input(&fmt_ctx); avio_context_free(&avio_ctx); pthread_mutex_lock(&c->buffer_lock); - av_fifo_drain(c->buffer, sizeof(struct Segment*)); + av_fifo_drain(c->buffer, sizeof(seg)); pthread_mutex_unlock(&c->buffer_lock); segment_unref(seg); client_set_state(c, WRITABLE); @@ -385,7 +385,7 @@ void *accept_thread(void *arg) info->httpd->close(server, client); continue; } - ffinfo = av_malloc(sizeof(struct FFServerInfo)); + ffinfo = av_malloc(sizeof(*ffinfo)); if (!ffinfo) { av_log(NULL, AV_LOG_ERROR, "Could not allocate FFServerInfo struct.\n"); publisher_cancel_reserve(pub); -- 2.16.2 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel