[FFmpeg-devel] [PATCH] Fix flush_pkt warning in ffplay.c

Stefano Sabatini stefano.sabatini-lala
Thu Dec 4 09:12:08 CET 2008


On date Wednesday 2008-12-03 16:25:00 -0800, Baptiste Coudurier encoded:
> Hi,
> 
> Stefano Sabatini wrote:
> > Hi,
> > 
> > this fixes the warning:
> > ffplay.c: In function ?main?:
> > ffplay.c:2875: warning: assignment discards qualifiers from pointer target type
> > 
> > Regards.
> > 
> > 
> > ------------------------------------------------------------------------
> > 
> > Index: ffplay.c
> > ===================================================================
> > --- ffplay.c	(revision 15995)
> > +++ ffplay.c	(working copy)
> > @@ -2583,7 +2583,7 @@
> >      SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
> >  
> >      av_init_packet(&flush_pkt);
> > -    flush_pkt.data= "FLUSH";
> > +    flush_pkt.data= av_strdup("FLUSH");
> 
> Set destruct_packet then to free 'data'.

Yes, regards.
-- 
FFmpeg = Fast and Fostering Marvellous Programmable Empowered Gangster
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-flush-warning-01.patch
Type: text/x-diff
Size: 428 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20081204/219a273a/attachment.patch>



More information about the ffmpeg-devel mailing list