changeset 21243:3ee64ff583a9

Useless use of strstr, strchr is good enough.
author reimar
date Sun, 26 Nov 2006 12:12:46 +0000
parents 8d671a2c1b00
children 77038ef975ba
files libmpcodecs/vd_ffmpeg.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c	Sun Nov 26 12:08:40 2006 +0000
+++ b/libmpcodecs/vd_ffmpeg.c	Sun Nov 26 12:12:46 2006 +0000
@@ -212,7 +212,7 @@
         mp_msg(type, mp_level, "[%s @ %p]", avc->item_name(ptr), avc);
     }
 
-    print_prefix= strstr(fmt, "\n") != NULL;
+    print_prefix= strchr(fmt, '\n') != NULL;
     vsnprintf(buf, sizeof(buf), fmt, vl);
     mp_msg(type, mp_level, buf);
 }