[MPlayer-cvslog] r34556 - trunk/gui/util/bitmap.c

ib subversion at mplayerhq.hu
Fri Jan 13 16:25:14 CET 2012


Author: ib
Date: Fri Jan 13 16:25:13 2012
New Revision: 34556

Log:
Replace deprecated avcodec functions by new ones.

Modified:
   trunk/gui/util/bitmap.c

Modified: trunk/gui/util/bitmap.c
==============================================================================
--- trunk/gui/util/bitmap.c	Fri Jan 13 15:12:32 2012	(r34555)
+++ trunk/gui/util/bitmap.c	Fri Jan 13 16:25:13 2012	(r34556)
@@ -78,7 +78,7 @@ static int pngRead(const char *fname, gu
     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 @@ static int pngRead(const char *fname, gu
     }
 
     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;


More information about the MPlayer-cvslog mailing list