Skip to content

Commit

Permalink
ffmpeg: set profile ignore case
Browse files Browse the repository at this point in the history
  • Loading branch information
nareix committed Jul 29, 2016
1 parent c06f934 commit 45d9944
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cgo/ffmpeg/ffmpeg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 45d9944

Please sign in to comment.