[FFmpeg-devel] [PATCH] remove useless mm.c close function

Reimar Döffinger Reimar.Doeffinger
Sun Aug 24 15:17:36 CEST 2008


Hello,
admittedly not tested, but seems quite obvious.
Unrelated, but wasn't there a macro to do the standard
sizeof(arr)/sizeof(*arr) to get the number of array
elements? I've seen quite a few code places that could
use it - either to de-hardcode assumptions or to de-uglify..

Greetings,
Reimar D?ffinger
-------------- next part --------------
Index: libavformat/mm.c
===================================================================
--- libavformat/mm.c	(revision 14905)
+++ libavformat/mm.c	(working copy)
@@ -175,11 +175,6 @@
     return 0;
 }
 
-static int mm_read_close(AVFormatContext *s)
-{
-    return 0;
-}
-
 AVInputFormat mm_demuxer = {
     "mm",
     NULL_IF_CONFIG_SMALL("American Laser Games MM format"),
@@ -187,5 +182,4 @@
     mm_probe,
     mm_read_header,
     mm_read_packet,
-    mm_read_close,
 };



More information about the ffmpeg-devel mailing list