From: Dan Dennedy Date: Sun, 26 May 2013 17:49:49 +0000 (-0700) Subject: Fix compile warning (pointer-to-int-cast) in avformat consumer. X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=4597c6ddcb23c87ff6228e258915359ef6e308fd;p=mlt Fix compile warning (pointer-to-int-cast) in avformat consumer. --- 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.