[MPlayer-cvslog] r23546 - trunk/gui/bitmap.c

cehoyos subversion at mplayerhq.hu
Tue Jun 12 10:38:43 CEST 2007


Author: cehoyos
Date: Tue Jun 12 10:38:42 2007
New Revision: 23546

Log:
Fix compilation after FFmpeg r9283.

Modified:
   trunk/gui/bitmap.c

Modified: trunk/gui/bitmap.c
==============================================================================
--- trunk/gui/bitmap.c	(original)
+++ trunk/gui/bitmap.c	Tue Jun 12 10:38:42 2007
@@ -37,7 +37,8 @@ static int pngRead( unsigned char * fnam
  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-cvslog mailing list