summaryrefslogtreecommitdiffstats
path: root/gui
diff options
context:
space:
mode:
authorcehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-12 08:38:42 +0000
committercehoyos <cehoyos@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-06-12 08:38:42 +0000
commit2c1d737ff787eeac939a7fda70ad0a1ef1437597 (patch)
treef721e76ec8209e3b2a6b3333cf3daca80cd34cfd /gui
parent1febb0fa87e1db6724c9e5f5ac2071ebee2f7aff (diff)
downloadmpv-2c1d737ff787eeac939a7fda70ad0a1ef1437597.tar.bz2
mpv-2c1d737ff787eeac939a7fda70ad0a1ef1437597.tar.xz
Fix compilation after FFmpeg r9283.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23546 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'gui')
-rw-r--r--gui/bitmap.c3
1 files changed, 2 insertions, 1 deletions
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) {