[FFmpeg-devel] [PATCH] rtmpproto: rename URLContext* argument in rtmp_write()

Kostya kostya.shishkov
Thu Feb 3 12:28:57 CET 2011


On Thu, Feb 03, 2011 at 12:17:35PM +0100, Anton Khirnov wrote:
> Now the first argument is URLContext *h. However, the function logs to
> LOG_CONTEXT, which is #defined as 's' for new lavf major versions.
> 
> Therefore, rename h -> s.
> ---
>  libavformat/rtmpproto.c |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c
> index 3ad49d6..748aab3 100644
> --- a/libavformat/rtmpproto.c
> +++ b/libavformat/rtmpproto.c
> @@ -923,9 +923,9 @@ static int rtmp_read(URLContext *s, uint8_t *buf, int size)
>      return orig_size;
>  }
>  
> -static int rtmp_write(URLContext *h, const uint8_t *buf, int size)
> +static int rtmp_write(URLContext *s, const uint8_t *buf, int size)
>  {
> -    RTMPContext *rt = h->priv_data;
> +    RTMPContext *rt = s->priv_data;
>      int size_temp = size;
>      int pktsize, pkttype;
>      uint32_t ts;
> -- 
> 1.7.2.3

looks correct 



More information about the ffmpeg-devel mailing list