fix jpeg parser when PARSER_FLAG_COMPLETE_FRAMES is set