# HG changeset patch # User ib # Date 1326468313 0 # Node ID ef94d1d0e2650272c462ab652bda1ee68020aefe # Parent 5c5024ea2529d3c760a7fe469860d162dc140554 Replace deprecated avcodec functions by new ones. diff -r 5c5024ea2529 -r ef94d1d0e265 gui/util/bitmap.c --- 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;