diff options
Diffstat (limited to 'libhb/scan.c')
-rw-r--r-- | libhb/scan.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libhb/scan.c b/libhb/scan.c index 8c35ddbe8..6708516bd 100644 --- a/libhb/scan.c +++ b/libhb/scan.c @@ -1243,7 +1243,8 @@ static void LookForAudio(hb_scan_t *scan, hb_title_t * title, hb_buffer_t * b) codec_name = codec->name; break; } - if (strstr(profile_name, codec_name) != NULL) + if (profile_name != NULL && codec_name != NULL && + strstr(profile_name, codec_name) != NULL) { codec_name = NULL; } |