diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index b2bfa23656e636c2dcfb3f67931e103423cc4bd3..d4072d9521525f8209e4503f2c07dc073661128a 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -280,9 +280,6 @@ typedef struct RcOverride{
     float quality_factor;
 } RcOverride;
 
-/* only for ME compatiblity with old apps */
-extern int motion_estimation_method;
-
 #define FF_MAX_B_FRAMES 16
 
 /* encoding support
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index c94a9b1190c26bbd8e903a9403db2f2fbe7cd3d8..24fb0821862d5ecc94fec88647d684b68118b80c 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -394,7 +394,7 @@ int av_read_image(ByteIOContext *pb, const char *filename,
 int av_write_image(ByteIOContext *pb, AVImageFormat *fmt, AVImageInfo *img);
 
 extern AVImageFormat *first_image_format;
-
+#if 0
 extern AVImageFormat pnm_image_format;
 extern AVImageFormat pbm_image_format;
 extern AVImageFormat pgm_image_format;
@@ -406,8 +406,9 @@ extern AVImageFormat yuv_image_format;
 extern AVImageFormat png_image_format;
 #endif
 extern AVImageFormat jpeg_image_format;
+#endif
 extern AVImageFormat gif_image_format;
-extern AVImageFormat sgi_image_format;
+//extern AVImageFormat sgi_image_format; //broken in itself
 
 /* XXX: use automatic init with either ELF sections or C file parser */
 /* modules */