Ticket #202 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

'const struct AVCodec' has no member named 'encode'

Reported by: J1S Owned by:
Priority: high Milestone:
Component: General Version: devel
Severity: major Keywords:
Cc: Platform: Linux


I have compiled ffmpeg git version yesterday.
Now I was compiling mplayer2 but gives an compile error:

libmpcodecs/vf_lavc.c: In function 'config':
libmpcodecs/vf_lavc.c:79:32: error: 'const struct AVCodec' has no member named 'encode'
libmpcodecs/vf_lavc.c: In function 'put_image':
libmpcodecs/vf_lavc.c:99:5: warning: 'avcodec_encode_video' is deprecated (declared at /usr/local/include/libavcodec/avcodec.h:4272) [-Wdeprecated-declarations]
make: *** [libmpcodecs/vf_lavc.o] Error 1

Change History

comment:1 Changed 2 years ago by uau

There's already a fix to make it compile with latest Libav/FFmpeg in the branch "unstable". I'll move that to the master branch soon.

comment:2 Changed 2 years ago by uau

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.