From 6d12c28052651d89842d7d8f4e2d7cde02e3d266 Mon Sep 17 00:00:00 2001 From: sam Date: Wed, 5 Aug 2009 14:37:02 +0000 Subject: [PATCH] Mark pipi_open_sequence's first argument as const. git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3630 92316355-f0b4-4df1-b90c-862c8a59935f --- pipi/pipi.h | 2 +- pipi/sequence.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pipi/pipi.h b/pipi/pipi.h index 3ff965a..c177b8e 100644 --- a/pipi/pipi.h +++ b/pipi/pipi.h @@ -237,7 +237,7 @@ __extern int pipi_get_image_histogram(pipi_image_t *, pipi_histogram_t *, int); __extern int pipi_free_histogram(pipi_histogram_t*); __extern int pipi_render_histogram(pipi_image_t *, pipi_histogram_t*, int); -__extern pipi_sequence_t *pipi_open_sequence(char *, int, int, int); +__extern pipi_sequence_t *pipi_open_sequence(char const *, int, int, int); __extern int pipi_feed_sequence(pipi_sequence_t *, uint8_t *, int, int); __extern int pipi_close_sequence(pipi_sequence_t *); diff --git a/pipi/sequence.c b/pipi/sequence.c index 5969a18..67b8cc9 100644 --- a/pipi/sequence.c +++ b/pipi/sequence.c @@ -58,7 +58,8 @@ ffmpeg_codec_t; #define PAR_DEN 1 #define BITRATE (16 * 1024 * 1024) -pipi_sequence_t *pipi_open_sequence(char *file, int width, int height, int fps) +pipi_sequence_t *pipi_open_sequence(char const *file, + int width, int height, int fps) { #if defined USE_FFMPEG static int initialised = 0;