1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-23 23:32:26 +00:00

Fix compilation after FFmpeg r9283.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23546 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2007-06-12 08:38:42 +00:00
parent 1febb0fa87
commit 2c1d737ff7

View File

@ -37,7 +37,8 @@ static int pngRead( unsigned char * fname,txSample * bf )
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) {