On Thu, Oct 04, 2012 at 05:36:58PM +0100, Måns Rullgård wrote:
> Diego Biurrun <di...@biurrun.de> writes:
> 
> > avplay.c:3015:20: warning: assignment discards ‘const’ qualifier from 
> > pointer target type
> > --- a/avplay.c
> > +++ b/avplay.c
> > @@ -2959,6 +2959,7 @@ static void opt_input_file(void *optctx, const char 
> > *filename)
> >  int main(int argc, char **argv)
> >  {
> >      int flags;
> > +    char str_flush[] = "FLUSH";
> >
> > @@ -3012,7 +3013,7 @@ int main(int argc, char **argv)
> >
> >      av_init_packet(&flush_pkt);
> > -    flush_pkt.data = "FLUSH";
> > +    flush_pkt.data = str_flush;
> 
> Can't we kill whatever hack needs this abomination instead?

I don't really care enough to dig deeper - the warning was very
annoying; I shut it up...

Diego
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to