Mercurial > mplayer.hg
diff gui/util/bitmap.c @ 34468:ef94d1d0e265
Replace deprecated avcodec functions by new ones.
author | ib |
---|---|
date | Fri, 13 Jan 2012 15:25:13 +0000 |
parents | 085b62ad0cf9 |
children | a9d2dcb0f435 |
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;