[FFmpeg-devel] [PATCH] add gb argument to ASF functions of interest to MS-RTSP

Michael Niedermayer michaelni
Sun Dec 14 20:39:47 CET 2008


On Sun, Dec 14, 2008 at 02:13:16PM -0500, Ronald S. Bultje wrote:
> Hi,
> 
> $subj, to not have to set AVFormatContext->gb every time we call a ASF
> demuxer function (this is how the RM demuxer does it too since the
> integration of RDT).
> 
> Ronald

> Index: ffmpeg-svn/libavformat/asf.c
> ===================================================================
> --- ffmpeg-svn.orig/libavformat/asf.c	2008-12-04 08:41:38.000000000 -0500
> +++ ffmpeg-svn/libavformat/asf.c	2008-12-04 08:42:14.000000000 -0500
> @@ -141,11 +141,10 @@
>      }
>  }
>  
> -static int asf_read_header(AVFormatContext *s, AVFormatParameters *ap)
> +static int asf_parse_header(AVFormatContext *s, ByteIOContext *pb)
>  {
>      ASFContext *asf = s->priv_data;
>      GUID g;
> -    ByteIOContext *pb = s->pb;
>      AVStream *st;
>      ASFStream *asf_st;
>      int size, i;
> @@ -546,6 +545,11 @@
>      return 0;
>  }

this does not just add a gb arg it renames the function as well

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

The misfortune of the wise is better than the prosperity of the fool.
-- Epicurus
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081214/90384d66/attachment.pgp>



More information about the ffmpeg-devel mailing list