summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY1
-rw-r--r--dxr3ffmpeg.c3
2 files changed, 3 insertions, 1 deletions
diff --git a/HISTORY b/HISTORY
index a3794b7..26c5040 100644
--- a/HISTORY
+++ b/HISTORY
@@ -288,3 +288,4 @@ NOTE: I havent found time to include all of the languages, will be done in pre2
(Luca Olivetti, Kimmo Vuorinen)
- rework OSD color management, fixes color "bleeding" (Luca Olivetti)
- sync SPU decoder with VDR 1.3.23 (Ville Skyttä)
+- register only needed ffmpeg codec(s) (Marco Schluessler)
diff --git a/dxr3ffmpeg.c b/dxr3ffmpeg.c
index 0a7ddcc..fe51e22 100644
--- a/dxr3ffmpeg.c
+++ b/dxr3ffmpeg.c
@@ -28,7 +28,8 @@
cDxr3Ffmepg::cDxr3Ffmepg()
{
avcodec_init();
- avcodec_register_all();
+ // Register only codec(s) we'll need.
+ register_avcodec(&mp2_decoder);
}
// ==================================