changeset 23526:cdf3ba9e5b97

Fix compilation after FFmpeg r9283.
author cehoyos
date Tue, 12 Jun 2007 08:38:42 +0000
parents 37ef65c09ac6
children 53e626fa36d2
files gui/bitmap.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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) {