Ticket #202 (closed defect: fixed)

Opened 19 months ago

Last modified 18 months 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

Description

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 19 months 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 18 months ago by uau

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