From e439a7fea30aab82fc5b704d9afdf3e63795464a Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Fri, 7 Dec 2007 00:38:41 +0000 Subject: Fix compilation of DXR3 support with external ffmpeg. Untested with actual DXR3. Compilation was "broken" by ffmpeg rev. 9283. --- ChangeLog | 2 ++ src/libffmpeg/ffmpeg_encoder.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 97dd87f94..d2f98b32d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -22,6 +22,8 @@ xine-lib (1.1.9) (unreleased) but not played yet. * Fixed a race condition between ao_loop and ao_close to not lose the last buffer. + * DXR3 encoding with external ffmpeg should be fixed now. + (This was broken by ffmpeg revision 9283). xine-lib (1.1.8) * Send a channel-changed event to the frontend when receiving the SYNC diff --git a/src/libffmpeg/ffmpeg_encoder.c b/src/libffmpeg/ffmpeg_encoder.c index 35c47db28..c8a450b0d 100644 --- a/src/libffmpeg/ffmpeg_encoder.c +++ b/src/libffmpeg/ffmpeg_encoder.c @@ -74,7 +74,7 @@ int dxr3_encoder_init(dxr3_driver_t *drv) lavc_data_t* this; avcodec_init(); - register_avcodec(&mpeg1video_encoder); + avcodec_register_all(); lprintf("lavc init , version %x\n", avcodec_version()); this = xine_xmalloc(sizeof(lavc_data_t)); if (!this) return 0; -- cgit v1.2.3