Re: [libav-devel] [PATCH 34/34] avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

2011-04-18 Thread Ronald S. Bultje
Hi, On Mon, Apr 18, 2011 at 5:20 PM, Stefano Sabatini wrote: > On date Monday 2011-04-18 16:20:43 -0400, Ronald S. Bultje wrote: >> On Mon, Apr 18, 2011 at 3:03 AM, Anton Khirnov wrote: >> > -#define AVIO_RDONLY 1  /**< read-only */ >> > -#define AVIO_WRONLY 2  /**< write-only */ >> > -#define A

Re: [libav-devel] [PATCH 34/34] avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

2011-04-18 Thread Stefano Sabatini
On date Monday 2011-04-18 16:20:43 -0400, Ronald S. Bultje wrote: > Hi, > > On Mon, Apr 18, 2011 at 3:03 AM, Anton Khirnov wrote: > > -#define AVIO_RDONLY 1  /**< read-only */ > > -#define AVIO_WRONLY 2  /**< write-only */ > > -#define AVIO_RDWR   4  /**< read-write */ > > +#define AVIO_FLAG_READ

Re: [libav-devel] [PATCH 34/34] avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

2011-04-18 Thread Ronald S. Bultje
Hi, On Mon, Apr 18, 2011 at 3:03 AM, Anton Khirnov wrote: > -#define AVIO_RDONLY 1  /**< read-only */ > -#define AVIO_WRONLY 2  /**< write-only */ > -#define AVIO_RDWR   4  /**< read-write */ > +#define AVIO_FLAG_READ  1                                      /**< > read-only */ > +#define AVIO_FL

[libav-devel] [PATCH 34/34] avio: remove AVIO_* access symbols in favor of new AVIO_FLAG_* symbols

2011-04-18 Thread Anton Khirnov
From: Stefano Sabatini Make AVIO_FLAG_ access constants work as flags, and in particular fix the behavior of functions (such as avio_check()) which expect them to be flags rather than modes. This breaks API. --- ffmpeg.c |2 +- ffserver.c |8 ---