[FFmpeg-devel] [PATCH 1/4] ffprobe: fix C escaping.
Stefano Sabatini
stefasab at gmail.com
Wed May 30 01:04:34 CEST 2012
On date Tuesday 2012-05-29 23:24:39 +0200, Clément Bœsch encoded:
> ---
> ffprobe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/ffprobe.c b/ffprobe.c
> index d86ff0b..aa2b344 100644
> --- a/ffprobe.c
> +++ b/ffprobe.c
> @@ -508,7 +508,7 @@ static const char *c_escape_str(AVBPrint *dst, const char *src, const char sep,
> const char *p;
>
> for (p = src; *p; p++) {
> - switch (*src) {
> + switch (*p) {
> case '\b': av_bprintf(dst, "%s", "\\b"); break;
> case '\f': av_bprintf(dst, "%s", "\\f"); break;
> case '\n': av_bprintf(dst, "%s", "\\n"); break;
Doh that's embarassing, looks good thanks.
--
FFmpeg = Forgiving Friendly Most Ponderous Exciting Game
More information about the ffmpeg-devel
mailing list