On Wed, Jul 06, 2011 at 09:11:13PM -0700, Ronald S. Bultje wrote:
> 
> On Wed, Jul 6, 2011 at 5:01 PM, Diego Biurrun <[email protected]> wrote:
> > libavformat/utils.c:599: warning: missing braces around initializer
> > libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’)
> > ---
> >  libavformat/utils.c |    2 +-
> >  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> This doesn't work once the struct is empty (see #ifdef in avformat.h).

Is that a problem?  Before the next big bump AVFormatParameters will
have to be removed anyway and this struct declaration will go away
along with this initialization.

> Why not memset it?

Last I checked this generated more instructions, apart from being uglier.

Diego
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to