Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
barbibulle committed May 1, 2022
1 parent 1954c9e commit 33331ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/C++/Apps/Mp42Hls/Mp42Hls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ main(int argc, char** argv)
}

if (Options.encryption_iv_mode == ENCRYPTION_IV_MODE_FPS) {
if (AP4_StringLength(Options.encryption_key_hex) != 64) {
if (Options.encryption_key_hex == NULL || AP4_StringLength(Options.encryption_key_hex) != 64) {
fprintf(stderr, "ERROR: 'fps' IV mode requires a 32 byte key value (64 characters in hex)\n");
return 1;
}
Expand Down

0 comments on commit 33331ce

Please sign in to comment.