[MPlayer-dev-eng] [PATCH] Fix gui compilation
Carl Eugen Hoyos
cehoyos at ag.or.at
Tue Jun 12 03:35:36 CEST 2007
Hi!
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));
avcodec_decode_video(avctx, frame, &decode_ok, data, len);
memset(bf, 0, sizeof(*bf));
switch (avctx->pix_fmt) {
More information about the MPlayer-dev-eng
mailing list