[FFmpeg-devel] [PATCH] Fix flush_pkt warning in ffplay.c
Baptiste Coudurier
baptiste.coudurier
Thu Dec 4 01:25:00 CET 2008
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'.
--
Baptiste COUDURIER GnuPG Key Id: 0x5C1ABAAA
Key fingerprint 8D77134D20CC9220201FC5DB0AC9325C5C1ABAAA
checking for life_signs in -lkenny... no
More information about the ffmpeg-devel
mailing list