* License along with FFmpeg; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+
+#include "libavutil/avstring.h"
#include "avformat.h"
-#include "avstring.h"
+#include <strings.h>
typedef struct {
int img_first;
{ CODEC_ID_SUNRAST , "im8"},
{ CODEC_ID_SUNRAST , "im24"},
{ CODEC_ID_SUNRAST , "sunras"},
- {0, NULL}
+ { CODEC_ID_NONE , NULL}
};
static int sizes[][2] = {
str++;
while (tags->id) {
- int i;
- for(i=0; toupper(tags->str[i]) == toupper(str[i]); i++){
- if(tags->str[i]==0 && str[i]==0)
- return tags->id;
- }
+ if (!strcasecmp(str, tags->str))
+ return tags->id;
tags++;
}
return 0;
}
-static int img_write_trailer(AVFormatContext *s)
-{
- return 0;
-}
-
#endif /* CONFIG_MUXERS */
/* input */
CODEC_ID_MJPEG,
img_write_header,
img_write_packet,
- img_write_trailer,
+ NULL,
AVFMT_NOFILE,
};
#endif
CODEC_ID_MJPEG,
img_write_header,
img_write_packet,
- img_write_trailer,
};
#endif