Commit f6173fed authored by Michael Niedermayer's avatar Michael Niedermayer

postproc: fix null pointer dereference with invalid option strings

Fixes CID1135760
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 9ab5cf54
......@@ -719,6 +719,10 @@ pp_mode *pp_get_mode_by_name_and_quality(const char *name, int quality)
if(filterToken == NULL) break;
p+= strlen(filterToken) + 1; // p points to next filterToken
filterName= strtok(filterToken, optionDelimiters);
if (filterName == NULL) {
ppMode->error++;
break;
}
av_log(NULL, AV_LOG_DEBUG, "pp: %s::%s\n", filterToken, filterName);
if(*filterName == '-'){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment