[Ffmpeg-devel] [PATCH] compare frame abvs string ignoring case

Limin Wang lance.lmwang
Thu Mar 29 04:16:27 CEST 2007


Hi,

$subj, please review it.


Thanks,
Limin
-------------- next part --------------
Index: libavformat/utils.c
===================================================================
--- libavformat/utils.c	(revision 8540)
+++ libavformat/utils.c	(working copy)
@@ -2423,7 +2423,7 @@
     int frame_width = 0, frame_height = 0;
 
     for(i=0;i<n;i++) {
-        if (!strcmp(frame_abvs[i].abv, str)) {
+        if (!strcasecmp(frame_abvs[i].abv, str)) {
             frame_width = frame_abvs[i].width;
             frame_height = frame_abvs[i].height;
             break;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20070329/ab127bd2/attachment.pgp>



More information about the ffmpeg-devel mailing list