From 4597c6ddcb23c87ff6228e258915359ef6e308fd Mon Sep 17 00:00:00 2001 From: Dan Dennedy Date: Sun, 26 May 2013 10:49:49 -0700 Subject: [PATCH] Fix compile warning (pointer-to-int-cast) in avformat consumer. --- src/modules/avformat/consumer_avformat.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/modules/avformat/consumer_avformat.c b/src/modules/avformat/consumer_avformat.c index f09bebd9..81130659 100644 --- a/src/modules/avformat/consumer_avformat.c +++ b/src/modules/avformat/consumer_avformat.c @@ -1077,13 +1077,14 @@ static inline long time_difference( struct timeval *time1 ) static int mlt_write(void *h, uint8_t *buf, int size) { mlt_properties properties = (mlt_properties) h; - mlt_events_fire( properties, "avformat-write", buf, size, NULL ); + mlt_events_fire( properties, "avformat-write", buf, &size, NULL ); return 0; } static void write_transmitter( mlt_listener listener, mlt_properties owner, mlt_service service, void **args ) { - listener( owner, service, (uint8_t*) args[0], (int) args[1] ); + int *p_size = (int*) args[1]; + listener( owner, service, (uint8_t*) args[0], *p_size ); } /** The main thread - the argument is simply the consumer. -- 2.39.2