[MPlayer-dev-eng] [PATCH] Fix gui compilation

Reimar Doeffinger Reimar.Doeffinger at stud.uni-karlsruhe.de
Tue Jun 12 08:08:07 CEST 2007


Hello,
On Tue, Jun 12, 2007 at 03:35:36AM +0200, Carl Eugen Hoyos wrote:
> Following inlined patch allows compilation and usage of gui after FFmpeg
> r9283 - tested only with icc;-)
> 
> If nobody objects (or beats me), I'll apply later today.
> 
> Carl Eugen
> 
> Index: gui/bitmap.c
> ===================================================================
> --- gui/bitmap.c        (Revision 23545)
> +++ gui/bitmap.c        (Arbeitskopie)
> @@ -37,7 +37,8 @@
>   fclose(fp);
>   avctx = avcodec_alloc_context();
>   frame = avcodec_alloc_frame();
> - avcodec_open(avctx, &png_decoder);
> + avcodec_register_all();
> + avcodec_open(avctx, avcodec_find_decoder(CODEC_ID_PNG));

Ok, though I don't know if it's better to search by ID or by name or
whatever...

Greetings,
Reimar Doeffinger



More information about the MPlayer-dev-eng mailing list