Skip to content

Commit

Permalink
Add missing nullptr check
Browse files Browse the repository at this point in the history
  • Loading branch information
uklotzde committed Jun 30, 2015
1 parent b43dce5 commit e0f217e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/soundsourcem4a/soundsourcem4a.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ MP4TrackId findFirstAudioTrackId(MP4FileHandle hFile) {
continue;
}
const char* mediaDataName = MP4GetTrackMediaDataName(hFile, trackId);
if (0 != strcasecmp(mediaDataName, "mp4a")) {
if ((nullptr == mediaDataName) || (0 != strcasecmp(mediaDataName, "mp4a"))) {
continue;
}
const u_int8_t audioType = MP4GetTrackEsdsObjectTypeId(hFile, trackId);
Expand Down

0 comments on commit e0f217e

Please sign in to comment.