diff --git a/libavcodec/allcodecs.c b/libavcodec/allcodecs.c
index c87b5973df61ec0d9c28fae98e3d9680aaf8b292..56730d71c7a270d04d467f2c5391b1f6d8c9f0b2 100644
--- a/libavcodec/allcodecs.c
+++ b/libavcodec/allcodecs.c
@@ -60,9 +60,6 @@ void avcodec_register_all(void)
 #endif //CONFIG_OGGVORBIS_DECODER
 #endif
 #ifdef CONFIG_LIBTHEORA
-#ifdef CONFIG_OGGTHEORA_ENCODER
-//    register_avcodec(&oggtheora_encoder);
-#endif //CONFIG_OGGTHEORA_ENCODER
 #ifdef CONFIG_OGGTHEORA_DECODER
     register_avcodec(&oggtheora_decoder);
 #endif //CONFIG_OGGTHEORA_DECODER
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 6a0347e1c3626c162b8800d05372d25bdad97749..809c8f842cdb139d52f3de10c7877b90b2554673 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -2102,7 +2102,6 @@ extern AVCodec ac3_encoder;
 extern AVCodec mp2_encoder;
 extern AVCodec mp3lame_encoder;
 extern AVCodec oggvorbis_encoder;
-extern AVCodec oggtheora_encoder;
 extern AVCodec faac_encoder;
 extern AVCodec flac_encoder;
 extern AVCodec xvid_encoder;