From 2c1d737ff787eeac939a7fda70ad0a1ef1437597 Mon Sep 17 00:00:00 2001 From: cehoyos Date: Tue, 12 Jun 2007 08:38:42 +0000 Subject: Fix compilation after FFmpeg r9283. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23546 b3059339-0415-0410-9bf9-f77b7e298cf2 --- gui/bitmap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gui') diff --git a/gui/bitmap.c b/gui/bitmap.c index f32b281195..f81e3e74ac 100644 --- a/gui/bitmap.c +++ b/gui/bitmap.c @@ -37,7 +37,8 @@ static int pngRead( unsigned char * fname,txSample * bf ) 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) { -- cgit v1.2.3