diff --git a/cgo/ffmpeg/ffmpeg.h b/cgo/ffmpeg/ffmpeg.h index e5f2a10..4571a64 100644 --- a/cgo/ffmpeg/ffmpeg.h +++ b/cgo/ffmpeg/ffmpeg.h @@ -17,7 +17,7 @@ typedef struct { static inline int avcodec_profile_name_to_int(AVCodec *codec, const char *name) { const AVProfile *p; for (p = codec->profiles; p != NULL && p->profile != FF_PROFILE_UNKNOWN; p++) - if (!strcmp(p->name, name)) + if (!strcasecmp(p->name, name)) return p->profile; return FF_PROFILE_UNKNOWN; }