# HG changeset patch # User cehoyos # Date 1181637522 0 # Node ID cdf3ba9e5b97d57c86ec28d2ed1f87b229bb6f12 # Parent 37ef65c09ac6e9d71af5244201549fa3b3219a65 Fix compilation after FFmpeg r9283. diff -r 37ef65c09ac6 -r cdf3ba9e5b97 gui/bitmap.c --- a/gui/bitmap.c Mon Jun 11 07:39:06 2007 +0000 +++ b/gui/bitmap.c Tue Jun 12 08:38:42 2007 +0000 @@ -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) {