changeset 34468:ef94d1d0e265

Replace deprecated avcodec functions by new ones.
author ib
date Fri, 13 Jan 2012 15:25:13 +0000
parents 5c5024ea2529
children c3f95506f756
files gui/util/bitmap.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gui/util/bitmap.c	Fri Jan 13 14:12:32 2012 +0000
+++ b/gui/util/bitmap.c	Fri Jan 13 15:25:13 2012 +0000
@@ -78,7 +78,7 @@
     fread(data, len, 1, file);
     fclose(file);
 
-    avctx = avcodec_alloc_context();
+    avctx = avcodec_alloc_context3(NULL);
     frame = avcodec_alloc_frame();
 
     if (!(avctx && frame)) {
@@ -89,7 +89,7 @@
     }
 
     avcodec_register_all();
-    avcodec_open(avctx, avcodec_find_decoder(CODEC_ID_PNG));
+    avcodec_open2(avctx, avcodec_find_decoder(CODEC_ID_PNG), NULL);
 
     av_init_packet(&pkt);
     pkt.data = data;