Diego Biurrun <di...@biurrun.de> writes:

> avplay.c:3015:20: warning: assignment discards ‘const’ qualifier from pointer 
> target type
> ---
>  avplay.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/avplay.c b/avplay.c
> index 5ba8155..cd8c386 100644
> --- 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";
>
>      av_log_set_flags(AV_LOG_SKIP_REPEATED);
>      parse_loglevel(argc, argv, options);
> @@ -3012,7 +3013,7 @@ int main(int argc, char **argv)
>      SDL_EventState(SDL_USEREVENT, SDL_IGNORE);
>
>      av_init_packet(&flush_pkt);
> -    flush_pkt.data = "FLUSH";
> +    flush_pkt.data = str_flush;

Can't we kill whatever hack needs this abomination instead?

-- 
Måns Rullgård
m...@mansr.com
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to