mirror of https://github.com/mpv-player/mpv
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:
parent
1febb0fa87
commit
2c1d737ff7
|
@ -37,7 +37,8 @@ static int pngRead( unsigned char * fname,txSample * bf )
|
||||||
fclose(fp);
|
fclose(fp);
|
||||||
avctx = avcodec_alloc_context();
|
avctx = avcodec_alloc_context();
|
||||||
frame = avcodec_alloc_frame();
|
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);
|
avcodec_decode_video(avctx, frame, &decode_ok, data, len);
|
||||||
memset(bf, 0, sizeof(*bf));
|
memset(bf, 0, sizeof(*bf));
|
||||||
switch (avctx->pix_fmt) {
|
switch (avctx->pix_fmt) {
|
||||||
|
|
Loading…
Reference in New Issue