Mercurial > mplayer.hg
diff gui/bitmap.c @ 23526:cdf3ba9e5b97
Fix compilation after FFmpeg r9283.
author | cehoyos |
---|---|
date | Tue, 12 Jun 2007 08:38:42 +0000 |
parents | 4b313fe708be |
children | 1318e956c092 |
line wrap: on
line diff
--- 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) {