building problem with ffmpeg

On my debian wheezy 64bit, I just tried to build from latest cvs using this command

makepanda.py --verbose --everything --use-bullet --threads 2 --optimize 1 --installer --use-openal 

but I got this error on ffmpeg (which, I saw, has recently moved away from panda core: [url]Native .wav loader, Ogg Vorbis loader, Ffmpeg out of core]):

...
In file included from panda/src/ffmpeg/p3ffmpeg_composite1.cxx:4:0:
panda/src/ffmpeg/ffmpegVirtualFile.cxx: In member function ‘void FfmpegVirtualFile::close()’:
panda/src/ffmpeg/ffmpegVirtualFile.cxx:194:5: warning: ‘void av_close_input_file(AVFormatContext*)’ is 
deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
panda/src/ffmpeg/ffmpegVirtualFile.cxx:194:40: warning: ‘void av_close_input_file(AVFormatContext*)’ is deprecated (declared at /usr/include/libavformat/avformat.h:1580) [-Wdeprecated-declarations]
In file included from panda/src/ffmpeg/p3ffmpeg_composite1.cxx:5:0:
panda/src/ffmpeg/ffmpegAudioCursor.cxx: In constructor ‘FfmpegAudioCursor::FfmpegAudioCursor(FfmpegAudio*)’:
panda/src/ffmpeg/ffmpegAudioCursor.cxx:57:3: error: class ‘FfmpegAudioCursor’ does not have any field named ‘_resample_ctx’
panda/src/ffmpeg/ffmpegAudioCursor.cxx:147:27: error: ‘av_frame_alloc’ was not declared in this scope
panda/src/ffmpeg/ffmpegAudioCursor.cxx: In member function ‘void FfmpegAudioCursor::cleanup()’:
panda/src/ffmpeg/ffmpegAudioCursor.cxx:193:26: error: ‘av_frame_free’ was not declared in this scope
In file included from panda/src/ffmpeg/p3ffmpeg_composite1.cxx:5:0:
panda/src/ffmpeg/ffmpegAudioCursor.cxx: In member function ‘bool FfmpegAudioCursor::reload_buffer()’:
panda/src/ffmpeg/ffmpegAudioCursor.cxx:318:28: error: ‘av_frame_unref’ was not declared in this scope
...

Is it a problem of library version or what else?

Thanks for help
Btw I rebuilt without ffmpeg and all went fine.

Update to the most recent version of ffmpeg.

Thanks