freebsd-ports/multimedia/mplayer2/files
Carlos J. Puga Medina b45df0e7db multimedia/mplayer2: Fix build with ffmpeg 3.x
screenshot.c:60:5: error: implicit declaration of function 'avcodec_free_frame' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    avcodec_free_frame(&ctx->pic);
    ^
screenshot.c:72:20: error: implicit declaration of function 'avcodec_alloc_frame' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
        ctx->pic = avcodec_alloc_frame();
                   ^
screenshot.c:97:22: error: use of undeclared identifier 'PIX_FMT_RGB24'; did you mean
      'AV_PIX_FMT_RGB24'?
    avctx->pix_fmt = PIX_FMT_RGB24;
                     ^~~~~~~~~~~~~
                     AV_PIX_FMT_RGB24
/usr/local/include/libavutil/pixfmt.h:64:5: note: 'AV_PIX_FMT_RGB24' declared here
    AV_PIX_FMT_RGB24,     ///< packed RGB 8:8:8, 24bpp, RGBRGB...
    ^
screenshot.c:113:5: error: implicit declaration of function 'avcodec_get_frame_defaults' is invalid
      in C99 [-Werror,-Wimplicit-function-declaration]
    avcodec_get_frame_defaults(pic);
    ^
screenshot.c:118:16: error: implicit declaration of function 'avcodec_encode_video' is invalid in C99
      [-Werror,-Wimplicit-function-declaration]
    int size = avcodec_encode_video(avctx, outbuffer, outbuffer_size, pic);
               ^

PR:		214896
Reported by:	jbeich
Reviewed by:	jbeich, junovitch (mentor)
Approved by:	jbeich, junovitch (mentor)
2016-12-09 15:10:37 +00:00
..
patch-configure
patch-fmt-conversion.c
patch-fmt-conversion.h
patch-libaf_af__lavcac3enc.c
patch-libao2-ao_oss.c
patch-libmpcodecs_ad__ffmpeg.c
patch-libmpcodecs_dec__teletext.c
patch-libmpcodecs_vd__ffmpeg.c
patch-libmpcodecs_vf__halfpack.c
patch-libmpcodecs_vf__lavc.c
patch-libmpcodecs_vf__lavcdeint.c
patch-libmpcodecs_vf__sab.c
patch-libmpcodecs_vf__scale.c
patch-libmpcodecs_vf__scale.h
patch-libmpcodecs_vf__screenshot.c
patch-libmpcodecs_vf__smartblur.c
patch-libmpcodecs-vd_theora.c
patch-libmpdemux_demux__lavf.c
patch-libmpdemux-demux_gif.c
patch-libmpdemux-demux_ogg.c
patch-libmpdemux-demuxer.h
patch-libvo_vo__png.c
patch-libvo_vo__v4l2.c
patch-libvo_vo_gif89a.c
patch-screenshot.c
patch-stream_stream__pvr.c
patch-stream_stream__radio.c
patch-stream-tvi_bsdbt848.c
patch-stream-tvi_v4l2.c
patch-sub_spudec.c
patch-sub-subassconvert.c
patch-sub-subreader.c
pkg-message.in